class_docstr: Model for predicting autofills given context.
class_docstr_tok: ["Model","for","predicting","autofills","given","context","."]
code: def residual_save(self, x):
      if not self.hparams.use_residual:
          return
      if self.residual_counter % self.residual_period == 1:
          self.output_for_residual = x
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import os
  from magenta.models.coconet import lib_hparams
  from magenta.models.coconet import lib_tfutil
  import tensorflow.compat.v1
label_desc: Use image node_id 18 for calling the CoconetGraph obj's underlying member method code with example usage: obj.residual_save(x) without return types