Skip to content

Remove call to layer.apply and just use __call__#21

Open
hmaarrfk wants to merge 1 commit intogoogle-research:masterfrom
hmaarrfk:remove_layer_apply
Open

Remove call to layer.apply and just use __call__#21
hmaarrfk wants to merge 1 commit intogoogle-research:masterfrom
hmaarrfk:remove_layer_apply

Conversation

@hmaarrfk
Copy link
Copy Markdown

Avoids

/home/mark/mambaforge/envs/dev/lib/python3.9/site-packages/tensorflow/python/keras/engine/base_layer_v1.py:1694: UserWarning: `layer.apply` is deprecated and will be removed in a future version. Please use `layer.__call__` method instead.

@hmaarrfk
Copy link
Copy Markdown
Author

hmaarrfk commented Dec 5, 2022

I noticed that a few other small fixes were pulled in. Is this one acceptable?

I dont really care about attribution, just about maintaining some code I use.

@Abohsllln
Copy link
Copy Markdown

Avoids


/home/mark/mambaforge/envs/dev/lib/python3.9/site-packages/tensorflow/python/keras/engine/base_layer_v1.py:1694: UserWarning: `layer.apply` is deprecated and will be removed in a future version. Please use `layer.__call__` method instead.

@hmaarrfk
Copy link
Copy Markdown
Author

What version of tf_slim did you install from conda-forge? I've taken the liberty to "fix" this problem in conda-forge.

conda-forge/tf-slim-feedstock#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants