I'm looking into magenta code, and printing its tensor object. I got this result:
Tensor("fully_connected/BiasAdd:0", shape=(?, 38), dtype=float32)
What does this question mark in shape mean?
About shapes Shape: The length (number of elements) of each of the axes of a tensor. Rank: Number of tensor axes. A scalar has rank 0, a vector has rank 1, a matrix is rank 2. Axis or Dimension: A particular dimension of a tensor.
A None value in the shape of a tensor means that the tensor can be of any size (large than or equal to 1) in that dimension.
Reading about the terminology you can see that shape (3, ) means you have a vector of 3 elements.
Each tensor object is defined with tensor attributes like a unique label (name), a dimension (shape) and TensorFlow data types (dtype). You can define a tensor with decimal values or with a string by changing the type of data.
It means that first dimension is not fixed in the graph and it can vary between run calls
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With