CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Avatar for Testing 18.04.

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

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