tensorflow 和keras 转化的时候

    技术2022-07-16  72

    keras  :

    a = Input( shape=(1,))

    a 的shape为(?,1)

    tensorflow :

    a = tf.placeholder( shape=(1,), name=prefix + fc.name, dtype=fc.dtype)

    生成的a 为 (1,)

    应该转化为

    a = tf.placeholder( shape=(None,1), name=prefix + fc.name, dtype=fc.dtype)
    Processed: 0.008, SQL: 9