tf.clip_by_value

tf.clip_by_value(t, clip_value_min, clip_value_max, name=None)

功能:基于定义的min与max对tesor数据进行截断操作,目的是为了应对梯度爆发或者梯度消失的情况

猜你喜欢

转载自www.cnblogs.com/callyblog/p/11136785.html