Skip to content

代码 #11

@NiceMartin

Description

@NiceMartin

在阅读代码,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]}

不知道这样写,有什么目的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions