Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The call() methods of custom layers are getting hybridized #328

Open
khatchad opened this issue Feb 17, 2024 · 1 comment
Open

The call() methods of custom layers are getting hybridized #328

khatchad opened this issue Feb 17, 2024 · 1 comment
Labels
question Further information is requested

Comments

@khatchad
Copy link
Member

That's because tensors are passe to them just like the call() methods of custom Models. Should we:

  • Only hybridize call() and __call()__ methods of Models.
  • Not hybridize call() and __call()__ methods of Layers.

Either of these would seem to be special cases.

@khatchad khatchad added the question Further information is requested label Feb 17, 2024
@khatchad khatchad added this to the Prototype implementation milestone Feb 17, 2024
@khatchad
Copy link
Member Author

Even though we are hybridizing call() of layers, it doesn't seem to have a big impact on performance. Maybe it's a little slower but not by much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant