()
| 28 | } |
| 29 | |
| 30 | func SyncBatchNormalization() *LSyncBatchNormalization { |
| 31 | return &LSyncBatchNormalization{ |
| 32 | axis: -1, |
| 33 | betaConstraint: &constraint.NilConstraint{}, |
| 34 | betaInitializer: initializer.Zeros(), |
| 35 | betaRegularizer: ®ularizer.NilRegularizer{}, |
| 36 | center: true, |
| 37 | dtype: Float32, |
| 38 | epsilon: 0.001, |
| 39 | gammaConstraint: &constraint.NilConstraint{}, |
| 40 | gammaInitializer: initializer.Ones(), |
| 41 | gammaRegularizer: ®ularizer.NilRegularizer{}, |
| 42 | momentum: 0.99, |
| 43 | movingMeanInitializer: initializer.Zeros(), |
| 44 | movingVarianceInitializer: initializer.Ones(), |
| 45 | name: UniqueName("sync_batch_normalization"), |
| 46 | scale: true, |
| 47 | trainable: true, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func (l *LSyncBatchNormalization) SetAxis(axis float64) *LSyncBatchNormalization { |
| 52 | l.axis = axis |
nothing calls this directly
no test coverage detected