Declare a tensor with an explicit shape.
Example: shape(2, 2) { ones() }
shape(2, 2) { ones() }
Shape overload that accepts a list.