Sharedtensorly.ipynbOpen in CoCalc
Author: Harald Schilly
Views : 38
License: Apache License 2.0

TensorLy on CoCalc

In Python 3 Ubuntu Linux kernel

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

In [1]:
import numpy as np import tensorly as tl tl.__version__
Using numpy backend.
'0.4.3'
In [2]:
X = tl.tensor(np.arange(24).reshape((3, 4, 2)))
In [3]:
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]]])
In [ ]: