CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Avatar for Testing 18.04.

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

| Download
Project: Testing 18.04
Views: 639
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]]])