What is right batch normalization function in Tensorflow?

后端 未结 2 936
生来不讨喜
生来不讨喜 2020-12-02 08:53

In tensorflow 1.4, I found two functions that do batch normalization and they look same:

  1. tf.layers.batch_normalization (link)
  2. tf.co
2条回答
  •  一个人的身影
    2020-12-02 09:03

    As show in doc, tf.contrib is a contribution module containing volatile or experimental code. When function is complete, it will be removed from this module. Now there are two, in order to be compatible with the historical version.

    So, the former tf.layers.batch_normalization is recommended.

提交回复
热议问题