Should I register Python scalars in PyTorch buffers? PyTorch's Module class has a method called `register_buffer`. This method is used to register a tensor called a buffer that is part of the module's ...