| 84 | } |
| 85 | |
| 86 | func (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 | |
| 111 | func (l *LLeakyReLU) GetCustomLayerDefinition() string { |
| 112 | return `` |