(heightFactor float64, widthFactor float64)
| 18 | } |
| 19 | |
| 20 | func RandomTranslation(heightFactor float64, widthFactor float64) *LRandomTranslation { |
| 21 | return &LRandomTranslation{ |
| 22 | dtype: Float32, |
| 23 | fillMode: "reflect", |
| 24 | fillValue: 0, |
| 25 | heightFactor: heightFactor, |
| 26 | interpolation: "bilinear", |
| 27 | name: UniqueName("random_translation"), |
| 28 | seed: nil, |
| 29 | trainable: true, |
| 30 | widthFactor: widthFactor, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | func (l *LRandomTranslation) SetDtype(dtype DataType) *LRandomTranslation { |
| 35 | l.dtype = dtype |
nothing calls this directly
no test coverage detected