dimensi tensor
#create a tensor
#code
import tensorflow as tf
import numpy as np
array_exemple=np.array([1,2])
array_exemple
#convert our array to a tensor
tensor_exemple=tf.constant(array_exemple)
tensor_exemple
#output
#<tf.Tensor: shape=(2,), dtype=int64, numpy=array([1, 2])>
""" the best way to create a tensor is to convert a simple array to a tensor."""
google it (mosbeh)