Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does the question mark in tensorflow shape mean?

Tags:

tensorflow

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?

like image 507
Kingston Chan Avatar asked Dec 03 '16 19:12

Kingston Chan


People also ask

What does shape mean in TensorFlow?

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.

What is none in TensorFlow?

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.

What does shape 3 mean in Python?

Reading about the terminology you can see that shape (3, ) means you have a vector of 3 elements.

What are three parameters that define tensors in TensorFlow?

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.


Video Answer


1 Answers

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

like image 59
Yaroslav Bulatov Avatar answered Oct 18 '22 17:10

Yaroslav Bulatov