Coder Social home page Coder Social logo

Comments (4)

JeanKossaifi avatar JeanKossaifi commented on May 23, 2024

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.

chalesguo avatar chalesguo commented on May 23, 2024

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.

JeanKossaifi avatar JeanKossaifi commented on May 23, 2024

Thanks, I had missed that one!
Wanna do a quick Pull-Request to add your changes to the repo?

from tensorly-notebooks.

JeanKossaifi avatar JeanKossaifi commented on May 23, 2024

Fixed in 43c6952

from tensorly-notebooks.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.