Give correct datatype to pytorch but it does not accept