Skip to content

Got an error very recently for "layers.normalizations". Something related to the "epsilon" variable in the typeguard module. #1067

Closed
@davidweioct

Description

@davidweioct

The code was run in google colab with the following install libraries:

!pip3 install nilearn
!pip3 install simpleITK
!pip3 install tensorflow-gpu==2.1.0
!pip3 install tensorflow-addons==0.8.1

ERROR info:

File "/usr/local/lib/python3.6/dist-packages/tensorflow_addons/layers/normalizations.py", line 319, in init
super().init(**kwargs)
File "/usr/local/lib/python3.6/dist-packages/typeguard/init.py", line 809, in wrapper
check_argument_types(memo)
File "/usr/local/lib/python3.6/dist-packages/typeguard/init.py", line 670, in check_argument_types
raise exc from None
File "/usr/local/lib/python3.6/dist-packages/typeguard/init.py", line 668, in check_argument_types
check_type(description, value, expected_type, memo)
File "/usr/local/lib/python3.6/dist-packages/typeguard/init.py", line 598, in check_type
format(argname, qualified_name(expected_type), qualified_name(value)))
TypeError: type of argument "epsilon" must be int; got float instead

Thank you so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglayersstyleRelated to repository's style

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions