Skip to content

mu = tf.reshape(input_mu, shape=[1, 1, self.n_bins]) 这个操作有什么特殊意思吗? #3

Description

@ChengjinLi

K-NRM/knrm/model/model_knrm.py文件下的177行,mu = tf.reshape(input_mu, shape=[1, 1, self.n_bins])有什么特殊意义吗?在104行tmp = tf.exp(-tf.square(tf.sub(rs_sim, mu)) / (tf.mul(tf.square(sigma), 2))), 使用tf.sub这个api计算的时候,我测试用不用reshape结果是一样的。

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