Closed LiuZengqiang closed 1 year ago
If the model is empty, the total_params is 0(int), it has no function .numpy(). It is should inialize with torch.tensor(1, dtype=int) type.
total_params
.numpy()
torch.tensor(1, dtype=int)
If the model is empty, the
total_params
is 0(int), it has no function.numpy()
. It is should inialize withtorch.tensor(1, dtype=int)
type.