oneflow icon indicating copy to clipboard operation
oneflow copied to clipboard

Could you please add the "inverse" method to the Tensor object just like PyTorch?

Open proceder-test opened this issue 3 years ago • 1 comments

Summary

Could you please add the "inverse" method to the Tensor object just like PyTorch?

import torch torch.Tensor.inverse

<method 'inverse' of 'torch._C._TensorBase' objects>

import oneflow oneflow.Tensor.inverse

Traceback (most recent call last): File "", line 1, in AttributeError: type object 'Tensor' has no attribute 'inverse'

Code to reproduce bug

import oneflow oneflow.Tensor.inverse

System Information

  • What is your OneFlow installation (pip, source, dockerhub): pip

  • OS: CentOS 7

  • OneFlow version (run python3 -m oneflow --doctor): version: 0.8.1+cu112.git.2e3ebb16 git_commit: 2e3ebb16 cmake_build_type: Release rdma: True mlir: True (I didn't use the master branch due to the reduce_max issue)

  • Python version: 3.7.12

  • CUDA driver version: 11.3

proceder-test avatar Aug 10 '22 01:08 proceder-test

Thank you for your feedback ! This feature will be added by : https://github.com/Oneflow-Inc/oneflow/pull/8183

chengtbf avatar Aug 10 '22 10:08 chengtbf