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

Function RandomWidth

layer/RandomWidth.go:17–26  ·  view source on GitHub ↗
(factor float64)

Source from the content-addressed store, hash-verified

15}
16
17func 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
28func (l *LRandomWidth) SetDtype(dtype DataType) *LRandomWidth {
29 l.dtype = dtype

Callers

nothing calls this directly

Calls 1

UniqueNameFunction · 0.70

Tested by

no test coverage detected