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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e988b2-16e5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e988b2-16e5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?