33

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?

Kingston Chan
  • 923
  • 2
  • 8
  • 25
  • 1
    Could you please tell me how to set a placeholder for such kind of tensor? I mean the shape of the placeholder. Thank you. – ytutow Aug 27 '17 at 19:15
  • @ytutow [use None as a dimension when creating the tensor](https://www.tensorflow.org/api_docs/python/tf/TensorShape) – user3125280 Feb 15 '18 at 10:55

1 Answers1

28

It means that first dimension is not fixed in the graph and it can vary between run calls

Yaroslav Bulatov
  • 57,332
  • 22
  • 139
  • 197