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

Method GetKerasLayerConfig

layer/LeakyReLU.go:86–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func (l *LLeakyReLU) GetKerasLayerConfig() interface{} {
87 inboundNodes := [][][]interface{}{
88 {},
89 }
90 for _, input := range l.inputs {
91 inboundNodes[0] = append(inboundNodes[0], []interface{}{
92 input.GetName(),
93 0,
94 0,
95 map[string]bool{},
96 })
97 }
98 return jsonConfigLLeakyReLU{
99 ClassName: "LeakyReLU",
100 Name: l.name,
101 Config: map[string]interface{}{
102 "alpha": l.alpha,
103 "dtype": l.dtype.String(),
104 "name": l.name,
105 "trainable": l.trainable,
106 },
107 InboundNodes: inboundNodes,
108 }
109}
110
111func (l *LLeakyReLU) GetCustomLayerDefinition() string {
112 return ``

Callers

nothing calls this directly

Calls 2

StringMethod · 0.80
GetNameMethod · 0.65

Tested by

no test coverage detected