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

Method GetKerasLayerConfig

layer/RandomWidth.go:95–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func (l *LRandomWidth) GetKerasLayerConfig() interface{} {
96 inboundNodes := [][][]interface{}{
97 {},
98 }
99 for _, input := range l.inputs {
100 inboundNodes[0] = append(inboundNodes[0], []interface{}{
101 input.GetName(),
102 0,
103 0,
104 map[string]bool{},
105 })
106 }
107 return jsonConfigLRandomWidth{
108 ClassName: "RandomWidth",
109 Name: l.name,
110 Config: map[string]interface{}{
111 "dtype": l.dtype.String(),
112 "factor": l.factor,
113 "interpolation": l.interpolation,
114 "name": l.name,
115 "seed": l.seed,
116 "trainable": l.trainable,
117 },
118 InboundNodes: inboundNodes,
119 }
120}
121
122func (l *LRandomWidth) GetCustomLayerDefinition() string {
123 return ``

Callers

nothing calls this directly

Calls 2

StringMethod · 0.80
GetNameMethod · 0.65

Tested by

no test coverage detected