#522·DeepCTR

以下变量用于 Lambda 层的调用,BatchNormalization

作者: chenroundsquare创建于 2023年5月4日更新于 2023年5月4日

描述错误(问题描述) 在Lambda层的调用中使用了以下变量(tf.compat.v1.nn.fused_batch_norm),但它们不存在于其跟踪对象中: <tf.Variable 'batch_normalization/gamma:0' shape=(32,) dtype=float32> <tf.Variable 'batch_normalization/beta:0' shape=(32,) dtype=float32> 这可能是预期的行为,但更有可能是遗漏。这表明该层应该作为子类化的Layer而非Lambda层来定义。

内容来源: shenweichen/DeepCTR