Error in Multiclass TypeError: dropout(): argument 'input' (position 1) must be Tensor, not str
gokulguptanew opened this issue · 1 comments
gokulguptanew commented
/usr/local/lib/python3.7/dist-packages/torch/cuda/amp/grad_scaler.py:116: UserWarning: torch.cuda.amp.GradScaler is enabled, but CUDA is not available. Disabling.
warnings.warn("torch.cuda.amp.GradScaler is enabled, but CUDA is not available. Disabling.")
0%| | 0/2939 [00:00<?, ?it/s]/usr/local/lib/python3.7/dist-packages/torch/cuda/amp/autocast_mode.py:118: UserWarning: torch.cuda.amp.autocast only affects CUDA ops, but CUDA is not available. Disabling.
warnings.warn("torch.cuda.amp.autocast only affects CUDA ops, but CUDA is not available. Disabling.")
TypeError Traceback (most recent call last)
in ()
143 epochs=3,
144 callbacks=[tb_logger, es],
--> 145 fp16=True,
146 )
147 model.save("model.bin")
8 frames
/usr/local/lib/python3.7/dist-packages/torch/nn/functional.py in dropout(input, p, training, inplace)
1074 if p < 0.0 or p > 1.0:
1075 raise ValueError("dropout probability has to be between 0 and 1, " "but got {}".format(p))
-> 1076 return VF.dropout(input, p, training) if inplace else _VF.dropout(input, p, training)
1077
1078
TypeError: dropout(): argument 'input' (position 1) must be Tensor, not str
msgi commented
Just show us the codes...