Hi,
I was unable to use floating-point labels using the following field declaration:
LABEL = data.Field(sequential=False, use_vocab=False, is_target=True, dtype=torch.DoubleTensor)
Got this error: "Specified Field dtype
Would it be straight-forward to numericalize such fields?
Thanks!
Hi, instead of using a concrete class for the dtype argument, you should use torch dtypes, ex:
LABEL = data.Field(sequential=False, use_vocab=False, is_target=True, dtype=torch.float64)
@shafiul if the issue is resolved, please feel free to close the issue. Thanks.
Hi, sorry for the late response. Thank you for the feedback.
Most helpful comment
Hi, instead of using a concrete class for the
dtypeargument, you should use torch dtypes, ex:LABEL = data.Field(sequential=False, use_vocab=False, is_target=True, dtype=torch.float64)