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
I've been trying to get this to work with the model subclassing API, but for some reason, the first layer of the model always expects the data to be in float32. Any idea how to get this to work?
The text was updated successfully, but these errors were encountered:
I couldn't get it to work. In order to use the approach above, I would have needed too big a refactor. Subclassed models are just a pytorch like interface. You just inherit from the normal model and then build the layers in the constructor, and the implementation in call. It's the same as a custom layer, but with a model instead.
I've been trying to get this to work with the model subclassing API, but for some reason, the first layer of the model always expects the data to be in
float32
. Any idea how to get this to work?The text was updated successfully, but these errors were encountered: