此处:和此处:中记录的Keras Model API代码会导致一个弃用警告。被引用的代码并没有直接使用colocate_with (尽管API可能使用了colocate_with)。此模型API是否会被弃用,或者警告是否存在错误?tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)这两个示例都会导致弃<em
以下代码在tensorflow r1.12 python API中生成警告:import tensorflow as tf
M.add(tf.keras.layers.Dense(2)); WARNING: Logging before flag parsing goes to stderr.__init__ (from tensorflow.