@@ -103,14 +103,14 @@ public Layer(bool trainable = true,
103103 _inbound_nodes = new List < Node > ( ) ;
104104 }
105105
106- public ( Tensor , Tensor ) __call__ ( Tensor [ ] inputs ,
106+ public Tensor [ ] __call__ ( Tensor [ ] inputs ,
107107 Tensor training = null ,
108108 Tensor state = null ,
109109 VariableScope scope = null )
110110 {
111111 var input_list = inputs ;
112112 var input = inputs [ 0 ] ;
113- Tensor outputs = null ;
113+ Tensor [ ] outputs = null ;
114114
115115 // We will attempt to build a TF graph if & only if all inputs are symbolic.
116116 // This is always the case in graph mode. It can also be the case in eager
@@ -142,33 +142,34 @@ public Layer(bool trainable = true,
142142 // overridden).
143143 _maybe_build ( inputs [ 0 ] ) ;
144144
145- ( input , outputs ) = call ( inputs [ 0 ] ,
145+ outputs = call ( inputs [ 0 ] ,
146146 training : training ,
147147 state : state ) ;
148+
148149 ( input , outputs ) = _set_connectivity_metadata_ ( input , outputs ) ;
149150 _handle_activity_regularization ( inputs [ 0 ] , outputs ) ;
150151 _set_mask_metadata ( inputs [ 0 ] , outputs , null ) ;
151152 } ) ;
152153 }
153154
154- return ( input , outputs ) ;
155+ return outputs ;
155156 }
156157
157- private ( Tensor , Tensor ) _set_connectivity_metadata_ ( Tensor inputs , Tensor outputs )
158+ private ( Tensor , Tensor [ ] ) _set_connectivity_metadata_ ( Tensor inputs , Tensor [ ] outputs )
158159 {
159160 //_add_inbound_node(input_tensors: inputs, output_tensors: outputs);
160161 return ( inputs , outputs ) ;
161162 }
162163
163- private void _handle_activity_regularization ( Tensor inputs , Tensor outputs )
164+ private void _handle_activity_regularization ( Tensor inputs , Tensor [ ] outputs )
164165 {
165166 //if(_activity_regularizer != null)
166167 {
167168
168169 }
169170 }
170171
171- private void _set_mask_metadata ( Tensor inputs , Tensor outputs , Tensor previous_mask )
172+ private void _set_mask_metadata ( Tensor inputs , Tensor [ ] outputs , Tensor previous_mask )
172173 {
173174
174175 }
@@ -178,9 +179,9 @@ private Tensor compute_mask(Tensor inputs, Tensor mask = null)
178179 return null ;
179180 }
180181
181- protected virtual ( Tensor , Tensor ) call ( Tensor inputs , Tensor training = null , Tensor state = null )
182+ protected virtual Tensor [ ] call ( Tensor inputs , Tensor training = null , Tensor state = null )
182183 {
183- return ( inputs , inputs ) ;
184+ throw new NotImplementedException ( "" ) ;
184185 }
185186
186187 protected virtual string _name_scope ( )
0 commit comments