the tensorlayer's Droupout layer has trouble working with tf.placeholder?
line 138 in L_Resnet_E_IR_MGPU.py: net = tl.layers.DropoutLayer(net, keep=keep_rate, name='E_Dropout') will throw some errors related with placeholders..
@tenggyut use pip3 install tensorlayer==1.7 may solve
Have tried that already...no luck. I ended up using tf.dropout instead of tl.layers.DropoutLayer...
Have tried that already...no luck. I ended up using tf.dropout instead of tl.layers.DropoutLayer...
I tried doing the same, but ended up with a lot of other errors. Can you tell me precisely the changes you made ?
Have tried that already...no luck. I ended up using tf.dropout instead of tl.layers.DropoutLayer...
I tried doing the same, but ended up with a lot of other errors. Can you tell me precisely the changes you made ?
# net = tl.layers.DropoutLayer(net, keep=0.4, name='E_Dropout')
net.outputs = tf.nn.dropout(net.outputs, keep_prob=keep_rate, name='E_Dropout')
net_shape = net.outputs.get_shape()
something like this
That worked. Thanks!
@tenggyut I use tf.dropout instead of tl.layers.DropoutLayer as
net.outputs = tf.nn.dropout(net.outputs, keep_prob=keep_rate, name='E_Dropout')
net_shape = net.outputs.get_shape()
but get an error ValueError: None values not supported.
how can i solve it.
@tenggyut I use tf.dropout instead of tl.layers.DropoutLayer as
net.outputs = tf.nn.dropout(net.outputs, keep_prob=keep_rate, name='E_Dropout') net_shape = net.outputs.get_shape()but get an error
ValueError: None values not supported.how can i solve it.
Sadly, the error info you provide is not enough for me to identify the root cause...a stack trace would be helpful
A wild guess would be that None is accidentally assigned to keep_rate?