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

AttributeError: 'Tensor' object has no attribute 'numpy' #24

Open
mainguyenanhvu opened this issue Aug 19, 2021 · 0 comments
Open

AttributeError: 'Tensor' object has no attribute 'numpy' #24

mainguyenanhvu opened this issue Aug 19, 2021 · 0 comments

Comments

@mainguyenanhvu
Copy link

mainguyenanhvu commented Aug 19, 2021

I faced this error when parsing model.tabnet.aggregate_feature_selection_mask tensor into numpy array.
In google colab, it has been done easily by using .numpy(). (my notebook).
In my local machine, I wrote a python script and tried many solutions to do fix it like this, this, this, this, this, this, this, this, this.

After that, I think I need to create a tensor operator to make it work. However, I faced this error: this.

My system information:

  • Tensorflow 2.5.0
  • Tabnet 0.16

Please help me to get the values in the tensor.
Thank you very much.

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

No branches or pull requests

1 participant