class_docstr: Fake version of TensorQuantFunction
  See comments of TensorQuantFunction, arguments are the same.
class_docstr_tok: ["Fake","version","of","TensorQuantFunction","See","comments","of","TensorQuantFunction",",","arguments","are","the","same","."]
code: def forward(
      ctx, inputs, amax, num_bits=8, unsigned=False, narrow_range=True
  ):
      ctx.save_for_backward(inputs, amax)
      outputs, scale = _tensor_quant(
          inputs, amax, num_bits, unsigned, narrow_range
      )
      if unsigned:
          outputs += (2.0 ** (num_bits - 1)) - 1.0
      return (outputs * scale).to(inputs.dtype)
  
imports: import numpy
  import yaml
  import logging
  import torch
  from torch.autograd import Function
label_desc: Use image node_id 1 for calling the FakeTensorQuantFunction obj's underlying member method code with example usage: obj.forward(ctx, inputs, amax, num_bits, unsigned, narrow_range) and returns: unknown