class_docstr: Implements the Memory module.
  
  Based on Neural Turing Machines: arXiv:1410.5401 [cs.NE]
class_docstr_tok: ["Implements","the","Memory","module",".","Based","on","Neural","Turing","Machines",":","arXiv:1410.5401","[","cs.NE","]"]
code: def set(self, mem_vals, mean_logits):
      set_op = tf.group(
          [
              self.mem_vals.assign(mem_vals),
              self.mean_logits.assign(mean_logits),
          ]
      )
      return set_op
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.layers import common_layers
  import tensorflow.compat.v1
label_desc: Use image node_id 6 for calling the TransformerMemory obj's underlying member method code with example usage: obj.set(mem_vals, mean_logits) and returns: set_op