def predict_sym(self, xs, name=None):
with tf.name_scope(name, "predict_sym", values=[xs]):
return L.get_output(self.l_out, xs)
def fit(self, xs, ys):
if self.normalize_inputs:
// recompute normalizing constants for inputs
After Change
with tf.compat.v1.variable_scope(self._variable_scope):
y_hat, _, _ = self.model.build(xs, name=name)
return y_hat
def get_params_internal(self, **args):
Get the params, which are the trainable variables.
return self._variable_scope.trainable_variables()