Comments (4)
Thank you @JeanKossaifi for sharing that blog post. I was wondering about the ordering of unfolding in TensorLy, and this explains it very well.
I will open a PR when the implementation is done.
from tensorly.
Hi @OsmanMalik -- yes this is an issue with the way the documentation is built for the backend functions. Ideally we'd need one doc per backend.
The issue here is that PyTorch does not support order
in the reshape. Why do you need it for?
If you absolutely need a reshape with the order
keyword in Pytorch you'd have to use a combination of transpose and reshapes which most likely would be inefficient.
from tensorly.
Hi @JeanKossaifi, I'm implementing an ALS-based function for tensor ring decomposition and was converting over code I had previously written in Matlab. Since Matlab uses Fortran ordering, I'm using order="F"
to get similar behavior in Python. But I should be able to rewrite the code to avoid using the order
parameter and just stick to standard ordering, which will probably be more efficient anyway.
from tensorly.
Indeed @OsmanMalik if you're planning to run things on GPU it would be much more efficient to stick with C ordering. I had written a blog post on this, and a Stack-Overflow post, if this helps. Happy to help adapt the formulas if you need!
As a side note, would love to have the ALS-TR in TensorLy if you're interested in opening a PR when you're done! :)
from tensorly.
Related Issues (20)
- Deprecating Tensorflow support? HOT 6
- Example data is missing HOT 2
- Would it be possible to do a non-negative partial Tucker factorization? HOT 8
- Error when running sparse Robust PCA HOT 5
- Further testing for preserving tensor context with operations HOT 4
- Error encountered when using tensorly.decomposition.parafac with high rank and GPU HOT 2
- Can I impute data using Tucker or CP Decomposition for categorical data? HOT 1
- make_svd_non_negative only returns the updated U matrix HOT 2
- All nan in matrix come from non negative tucker decomposition HOT 2
- Init mode == "random" does not return the correct shape in initialize_tucker HOT 3
- It appears that partial_unfold works using sparse tensors, but it is not clear in the documentation
- Better random init of factorized tensors HOT 1
- svd_interface will throw an error if the number of rows of the matrix is smaller than it's columns HOT 1
- numpy.core._exceptions._ArrayMemoryError HOT 2
- Is there any t-product implementation code in tensorly?Thanks HOT 1
- More descriptive message when random PARAFAC2 rank is infeasible given shape HOT 1
- AssertionError: `tensorly.tt_tensor.validate_tt_rank` test HOT 1
- Randomised_CP function throws a Singular Matrix error HOT 2
- Tensor Conversion in TensorLy Does Not Preserve PyTorch Tensor dtype and device Attributes
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.