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

Added logdet to Pytorch frontend tensor.py #14696

Closed
wants to merge 1 commit into from
Closed

Added logdet to Pytorch frontend tensor.py #14696

wants to merge 1 commit into from

Conversation

profgandhi
Copy link
Contributor

No description provided.

@ivy-leaves ivy-leaves added the PyTorch Frontend Developing the PyTorch Frontend, checklist triggered by commenting add_frontend_checklist label Apr 28, 2023
@profgandhi
Copy link
Contributor Author

close #14666

@AnnaTz AnnaTz linked an issue Apr 28, 2023 that may be closed by this pull request
@@ -998,3 +998,7 @@ def mm(self, mat2):
@with_unsupported_dtypes({"1.11.0 and below": ("bfloat16", "float16")}, "torch")
def square(self):
return torch_frontend.square(self._ivy_array)

@with_unsupported_dtypes({"1.11.0 and below": ("float16", "bfloat16")}, "torch")
def det(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this should be named logdet as this is what you are implementing.


@with_unsupported_dtypes({"1.11.0 and below": ("float16", "bfloat16")}, "torch")
def det(self):
return torch_frontend.log(torch_frontend.det(self))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please add a test for the function as well.

@profgandhi profgandhi closed this by deleting the head repository Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PyTorch Frontend Developing the PyTorch Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logdet
3 participants