Register torch.Tensor into Torch state_dict but to not appears in learnable parameters torch Model.parameters(). It is used for registering constant configuration tensor or initialization tensor for the model should be managed by a Tensor in the same device.
torch.nn.Module register_buffer()
Creator
Creator
Seonglae ChoCreated
Created
2025 Apr 10 20:11Editor
Editor
Seonglae ChoEdited
Edited
2025 Apr 10 20:14Refs
Refs