class_docstr: Wrapper class for quantized operations.
  
  The instance of this class can be used instead of the
  ``torch.ops.quantized`` prefix. See example usage below.
  
  .. note::
  
      This class does not provide a ``forward`` hook. Instead, you must use
      one of the underlying functions (e.g. ``add``).
  
  Examples::
  
      >>> q_add = QFunctional()
      >>> # xdoctest: +SKIP
      >>> a = torch.quantize_per_tensor(torch.tensor(3.0), 1.0, 0, torch.qint32)
      >>> b = torch.quantize_per_tensor(torch.tensor(4.0), 1.0, 0, torch.qint32)
      >>> q_add.add(a, b)  # Equivalent to ``torch.ops.quantized.add(a, b, 1.0, 0)``
  
  Valid operation names:
      - add
      - cat
      - mul
      - add_relu
      - add_scalar
      - mul_scalar
code: def mul_scalar(self, x: Tensor, y: float) -> Tensor:
      r = ops.quantized.mul_scalar(x, y)
      # Note: this operation is not observed because the observation is not
      # needed for the quantized op.
      return r
  
imports: from typing import List
  import torch
  from torch import Tensor
  from torch._ops import ops
label_desc: Use image node_id 10 for calling the QFunctional obj's underlying member method code with example usage: obj.mul_scalar(x, y) and returns: r