MCPcopy Create free account
hub / github.com/CodingBeard/tfkg / RandomTranslation

Function RandomTranslation

layer/RandomTranslation.go:20–32  ·  view source on GitHub ↗
(heightFactor float64, widthFactor float64)

Source from the content-addressed store, hash-verified

18}
19
20func 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
34func (l *LRandomTranslation) SetDtype(dtype DataType) *LRandomTranslation {
35 l.dtype = dtype

Callers

nothing calls this directly

Calls 1

UniqueNameFunction · 0.70

Tested by

no test coverage detected