Comments (4)
If you update TensorLy to the latest version, this should get rid of the problem.
With pip:
pip install -U tensorly
The issue is that the function was not imported in tensorly/tenalg/__init__.py
, this was fixed by tensorly/tensorly@9f61309
If you have cloned the repository you can also fix the issue either by editing directly that file the following:
from .generalised_inner_product import inner
from tensorly-notebooks.
i change the file of tensor_regression_layer_pytorch, so that is OK.
def forward(self, x):
regression_weights = tl.tucker_to_tensor(self.core, self.factors)
return tl.tenalg.inner(x, regression_weights, n_modes=tl.ndim(x)-1) + self.bias
from tensorly-notebooks.
Thanks, I had missed that one!
Wanna do a quick Pull-Request to add your changes to the repo?
from tensorly-notebooks.
Fixed in 43c6952
from tensorly-notebooks.
Related Issues (13)
- cnn acceleration with tensorly runs slower than without decompostion? HOT 4
- Need little help regarding regression after autoscaling HOT 2
- Sparse example notebooks need updates on import HOT 1
- little bug in tensor_regression_layer_pytorch.ipynb HOT 3
- Tensor Decomposition Using GPU HOT 1
- AttributeError: 'Tensor' object has no attribute 'numpy' HOT 2
- Cannot cast array data from dtype('uint64') to dtype('int64') according to the rule 'safe'
- Nonnegative Tucker Decomposition error HOT 1
- Adding a license file? HOT 6
- matrix type must be 'f', 'd', 'F', or 'D' HOT 1
- tensor_regression_layer_pytorch.ipynb | penalty term? HOT 2
- My question HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorly-notebooks.