The difference of `torch.nn.quantized.FloatFunctional.add` and `torch.nn.quantized.FloatFunctional.add_scalar`?

What’s the difference between torch.nn.quantized.FloatFunctional.add and torch.nn.quantized.FloatFunctional.add_scalar? Is the former one used for tensor + tensor and the latter one used for tensor + scalar ? Or anything other?

Yes, this is correct. You can check this out in the source code, here: pytorch/functional_modules.py at b89827b73f7881a8108518452768654894862e5d · pytorch/pytorch · GitHub