parameters: (self, emitter, registers, kernel_m, kernel_n, lhs, rhs)
docstring: Load parameters and prepare duplicated registers.
docstring_summary: Load parameters and prepare duplicated registers.
docstring_tokens: Load parameters and prepare duplicated registers .
function: def Prepare(self, emitter, registers, kernel_m, kernel_n, lhs, rhs):
      """Load parameters and prepare duplicated registers."""
      emitter.EmitNewline()
      emitter.EmitComment('StaticQuantization::Prepare')
  
      lhs_offset = _ReadParams(emitter, registers, lhs, kernel_m, 4)
      self.rhs_offsets = _ReadParams(emitter, registers, rhs, kernel_n, 4)
      self.multiplicative_offset = _DuplicateGeneralRegister(
          emitter, registers,
          registers.MapParameter('multiplicative_offset',
                                 'params.kernel.multiplicative_offset'), 4)
      self.rounding_offset = _DuplicateGeneralRegister(
          emitter, registers,
          registers.MapParameter('rounding_offset',
                                 'params.kernel.rounding_offset'), 4)
      self.shift = _DuplicateGeneralRegister(
          emitter, registers,
          registers.MapParameter('shift', 'params.kernel.shift'), 4)
      self.lhs_offsets = _Duplicate(emitter, registers, kernel_m, lhs_offset)
function_tokens: def Prepare ( self , emitter , registers , kernel_m , kernel_n , lhs , rhs ) : emitter . EmitNewline ( ) emitter . EmitComment ( 'StaticQuantization::Prepare' ) lhs_offset = _ReadParams ( emitter , registers , lhs , kernel_m , 4 ) self . rhs_offsets = _ReadParams ( emitter , registers , rhs , kernel_n , 4 ) self . multiplicative_offset = _DuplicateGeneralRegister ( emitter , registers , registers . MapParameter ( 'multiplicative_offset' , 'params.kernel.multiplicative_offset' ) , 4 ) self . rounding_offset = _DuplicateGeneralRegister ( emitter , registers , registers . MapParameter ( 'rounding_offset' , 'params.kernel.rounding_offset' ) , 4 ) self . shift = _DuplicateGeneralRegister ( emitter , registers , registers . MapParameter ( 'shift' , 'params.kernel.shift' ) , 4 ) self . lhs_offsets = _Duplicate ( emitter , registers , kernel_m , lhs_offset )