@overrides<EOL><INDENT>def save(self, epoch: Optional[int] = None) -> None:<DEDENT>
path = self.save_path<EOL>if epoch is not None:<EOL><INDENT>path = path.parent / self.epoch_save_path / str(epoch) / path.parts[-<NUM_LIT:1>]<EOL>path.resolve()<EOL>log.info(f'<STR_LIT>')<EOL><DEDENT>path.parent.mkdir(parents=True, exist_ok=True)<EOL>path = str(path)<EOL>log.info(f'<STR_LIT>')<EOL>with self.graph.as_default():<EOL><INDENT>saver = tf.train.Saver()<EOL>saver.save(self.sess, path)<EOL><DEDENT>
Save model parameters to self.save_path