-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
在阅读代码,input为什么要写成这种格式
encoder_inputs = tf.placeholder(tf.int32, [input_steps, batch_size], name='encoder_inputs')
而不是
encoder_inputs = tf.placeholder(tf.int32, [batch_size,inputs_steps], name='encoder_inputs')
因为在后面,又需要对输入进行 transpose 操作
feed_dict = {encoder_inputs: np.transpose(unziped[0], [1, 0]),
encoder_inputs_actual_length: unziped[1],
decoder_targets: unziped[2],
intent_targets: unziped[3]}
不知道这样写,有什么目的
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels