(factor float64)
| 15 | } |
| 16 | |
| 17 | func RandomWidth(factor float64) *LRandomWidth { |
| 18 | return &LRandomWidth{ |
| 19 | dtype: Float32, |
| 20 | factor: factor, |
| 21 | interpolation: "bilinear", |
| 22 | name: UniqueName("random_width"), |
| 23 | seed: nil, |
| 24 | trainable: true, |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func (l *LRandomWidth) SetDtype(dtype DataType) *LRandomWidth { |
| 29 | l.dtype = dtype |
nothing calls this directly
no test coverage detected