There is a variable in tensorflow, and there is a dimension that is uncertain all the time. How to force a value to it?

1. Question:

tensorflow
  1. error

    the Tensor printed in blue before is the variable I want to force assignment to
  1. Code:
    def alexnet(image, keepprob=0.5):
    ...
    fc3 = tf.nn.sigmoid(tf.matmul(dropout2, weight3))

    return fc3

is the f3 variable!

May.15,2021

provides too little code content to understand what you did earlier.


the 0th dimension is batch_size. Look how big your batch size is.

Menu