You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
SineReLU gone rough in Sequential Method after being called through string alias method
Previously, I had called SineReLU function in subclass model building method using string alias through get_custom_objects(), Unfortunately, BatchNormalization function failed in that method producing an interesting error of invalid tesnor rank.
Don't want to be carried out! I then swtiched to something called Sequential method, yada! Our favourite proven way!! But, this time, it shows a typesec error with the SineReLU function which is totally weird. Because, I have improted and run the functional call in previous cell and all works perfectly fine except while I call the function within the core model architecture.
I am really adamant at this point, to get SineReLU function to work so much, I will even write custom code in the keras-contrib library if that what takes to fix this error. (I could get away with Swish function but I won't)
891 3, "Failed to convert %r to tensor: %s" % (type(value).__name__, e))892
--> 893 raise TypeError(f"Could not build a TypeSpec for {value} of "
894 f"unsupported type {type(value)}.")
895
TypeError: Could not build a TypeSpec for <keras_contrib.layers.advanced_activations.sinerelu.SineReLU object at 0x7f4d5c575ad0> of unsupported type <class 'keras_contrib.layers.advanced_activations.sinerelu.SineReLU'>.
I will really appreciate if anyone can help me fix this error
The text was updated successfully, but these errors were encountered:
SineReLU gone rough in Sequential Method after being called through string alias method
Previously, I had called SineReLU function in subclass model building method using string alias through get_custom_objects(), Unfortunately, BatchNormalization function failed in that method producing an interesting error of invalid tesnor rank.
Don't want to be carried out! I then swtiched to something called Sequential method, yada! Our favourite proven way!! But, this time, it shows a typesec error with the SineReLU function which is totally weird. Because, I have improted and run the functional call in previous cell and all works perfectly fine except while I call the function within the core model architecture.
I am really adamant at this point, to get SineReLU function to work so much, I will even write custom code in the keras-contrib library if that what takes to fix this error. (I could get away with Swish function but I won't)
## My Code:
Importing libraries
Error Log:
I will really appreciate if anyone can help me fix this error
The text was updated successfully, but these errors were encountered: