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

Allow customGrad to take tensorlike objects #6219

Closed
lina128 opened this issue Mar 14, 2022 · 1 comment
Closed

Allow customGrad to take tensorlike objects #6219

lina128 opened this issue Mar 14, 2022 · 1 comment
Assignees

Comments

@lina128
Copy link
Collaborator

lina128 commented Mar 14, 2022

Feature request from forum: https://discuss.tensorflow.org/t/could-custom-ops-be-as-nice-as-core-ops/8236

"The args passed in customGrad(f)(x1, x2,…) must all be tensors. This means that custom ops are less user-friendly than the core ops which all use convertToTensor to allow them to take TensorLike objects.

I think it would be much nicer if custom ops were first class like the core ops, then library extensions could feel more natural. (I also noticed that convertToTensor seems to be private, I was expecting it in tf.util. Might that be exposed as well?)" - by iislucas

@gaikwadrahul8
Copy link
Contributor

Hi, @lina128

Thank you for opening this issue for tracking purposes. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.

The TFJs team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TFJs version with the latest compatible hardware configuration which could potentially resolve the issue.

Based on our internal discussion, we are closing this issue at this time. If you still feel that this feature request is relevant, please feel free to create a new issue.

Thank you for your support and cooperation.

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

No branches or pull requests

4 participants