Published
Edited
Jul 14, 2021
2 stars
Insert cell
# Vectors
Insert cell
tf.scalar(4).array()
Insert cell
a = tf.tensor1d([2,4,2,5,6])
Insert cell
b = tf.tensor1d([5,2,1,1,7])
Insert cell
a.array()
Insert cell
tf.add(a,b).array()
Insert cell
tf.sub(a,b).array()
Insert cell
tf.mul(a,b).array()
Insert cell
tf.mul(2,a).array()
Insert cell
tf.add(a,2).array()
Insert cell
a.dot(b).array()
Insert cell
tf.zeros([10]).array()
Insert cell
tf.ones([10]).array()
Insert cell
tf.linspace(0,10,21).array()
Insert cell
tf.range(0,10,.1).array()
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more