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()
Created
Created
2025 Apr 10 20:11Editor
Editor

Creator
Creator

Edited
Edited
2025 Apr 10 20:14Refs
Refs