Tensor Reflection

Overview


Implementation



let tensor = tf.tensor([[1,0],[0,1]]);

let shape tensor.shape;
let rank = tensor.rank;
let dtype = tensor.dtype;
				
Try it!

  • shape - the number of dimensions
  • rank - the size of each dimension
  • dtype - the data type of the tensor

Contents