def training(self, is_training=True):
if is_training:<EOL><INDENT>callJavaFunc(self.value.training)<EOL><DEDENT>else:<EOL><INDENT>callJavaFunc(self.value.evaluate)<EOL><DEDENT>return self<EOL>
Set this layer in the training mode or in predition mode if is_training=False