You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def _create_encoding_layers(self):
"""Create the encoding layers for supervised finetuning.
:return: output of the final encoding layer.
"""
next_train=self.input_data
self.layers_nodes=[]
for l, layer in enumerate(self.layers):
with tf.name_scope('encode-{}'.format(l)):
y_act=tf.add(
tf.matmul(next_train,self.encoding_w_[l]),
self.encoding_b_[l]
)
if self.finetune_act_func:
layer_y=self.finetune_act_func(y_act)
else:
layer_y=None ##!!!!!!!!!!!!!! not right here
# the input of the next layer is the output of the last layer
next_train=tf.nn.dropoput(layer_y,self.keep_prob)
self.layer_nodes.append(next_train)
return next_train
should be : if self.finetune_act_func:
layer_y=self.finetune_act_func(y_act)
else:
layer_y=y_act
The text was updated successfully, but these errors were encountered:
should be : if self.finetune_act_func:
layer_y=self.finetune_act_func(y_act)
else:
layer_y=y_act
The text was updated successfully, but these errors were encountered: