Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News Sign UpSign In
| Download
Project: Testing 18.04
Views: 626
License: APACHE
Kernel: Python 3 (Ubuntu Linux)

TensorLy on CoCalc

In Python 3 Ubuntu Linux kernel

http://tensorly.org/stable/user_guide/index.html

import numpy as np import tensorly as tl tl.__version__
Using numpy backend.
'0.4.3'
X = tl.tensor(np.arange(24).reshape((3, 4, 2)))
X
array([[[ 0, 1], [ 2, 3], [ 4, 5], [ 6, 7]], [[ 8, 9], [10, 11], [12, 13], [14, 15]], [[16, 17], [18, 19], [20, 21], [22, 23]]])