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

Method GetKerasLayerConfig

layer/AveragePooling3D.go:107–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107func (l *LAveragePooling3D) GetKerasLayerConfig() interface{} {
108 inboundNodes := [][][]interface{}{
109 {},
110 }
111 for _, input := range l.inputs {
112 inboundNodes[0] = append(inboundNodes[0], []interface{}{
113 input.GetName(),
114 0,
115 0,
116 map[string]bool{},
117 })
118 }
119 return jsonConfigLAveragePooling3D{
120 ClassName: "AveragePooling3D",
121 Name: l.name,
122 Config: map[string]interface{}{
123 "data_format": l.dataFormat,
124 "dtype": l.dtype.String(),
125 "name": l.name,
126 "padding": l.padding,
127 "pool_size": l.poolSize,
128 "strides": l.strides,
129 "trainable": l.trainable,
130 },
131 InboundNodes: inboundNodes,
132 }
133}
134
135func (l *LAveragePooling3D) GetCustomLayerDefinition() string {
136 return ``

Callers

nothing calls this directly

Calls 2

StringMethod · 0.80
GetNameMethod · 0.65

Tested by

no test coverage detected