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

tf.linalg.inv() #8173

Open
N1k0l1n opened this issue Feb 7, 2024 · 1 comment
Open

tf.linalg.inv() #8173

N1k0l1n opened this issue Feb 7, 2024 · 1 comment

Comments

@N1k0l1n
Copy link

N1k0l1n commented Feb 7, 2024

Please make sure that this is a feature request. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:feature_template

As a new user of TensorFlow.js, I've been exploring its capabilities for machine learning tasks. While following lectures and tutorials, I encountered a need to compute the inverse of a matrix using TensorFlow.js. Here is an example :

const x = tf.tensor2d([[ 4, 2], [-5, -3]]);
//Does not exist in tensorflow js
let y = tf.linalg.inv(x);
y.print()

However, I couldn't find a built-in function for this purpose. Therefore, I would like to request the addition of a new function, tf.linalg.inv(), to compute the inverse of a matrix in TensorFlow.js. (Or any work around)
Any Help is much appreciated. Thank you for your time and pattience

System information

  • TensorFlow.js version (you are using): 3.9
  • Are you willing to contribute it (Yes/No):
    I'm new to contributing to open-source projects, but I'm willing to help in any way I can, whether it's testing, documentation, or providing feedback on the implementation of this feature.

Describe the feature and the current behavior/state.

Will this change the current api? How?

Who will benefit with this feature?

Any Other info.

@N1k0l1n N1k0l1n added the type:feature New feature or request label Feb 7, 2024
@gaikwadrahul8 gaikwadrahul8 self-assigned this Feb 7, 2024
@gaikwadrahul8
Copy link
Contributor

Hi, @N1k0l1

Thank you for suggesting the addition of tf.linalg.inv() to TensorFlow.js! We appreciate your feedback and interest in expanding the library's capabilities.

While we recognize the potential benefits of this feature, it's important to note that it's already available within the core TensorFlow codebase. You can access it using Python please refer tf.linalg.inv

We understand that having this functionality directly in TensorFlow.js would be convenient for browser-based or JavaScript-focused projects. However, implementing it in TensorFlow.js involves technical considerations and alignment with our current development priorities.

If someone or you're interested in seeing this feature implemented directly in TensorFlow.js, we welcome contributions from you and the community please refer How to Contribute and How to Contribute a New op to TF.js Repository

Thank you for your cooperation and patience.

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

3 participants