Traceback (most recent call last):


 "test.py", line 17, in <module>

traced_net = torch.jit.trace(model,torch.rand(1, 3, 224, 224).cuda())


 "C:\Anaconda3\envs\test\lib\site-packages\torch\jit\__init__.py", line 668, in trace

var_lookup_fn, _force_outplace)
RuntimeError: Only tensors and (possibly nested) tuples of tensors are supported as inputs or outputs of traced functions (toIValue at C:\w\1\s\tmp_conda_3.7_105432\conda\conda-bld\pytorch-nightly_1553165830809\work\torch/csrc/jit/pybind_utils.h:97)

`Traceback (most recent call last):


 "1_train_predictor.py", line 322, in <module>

train(args,model,train_dataset,epoch)


 "1_train_predictor.py", line 230, in train

loss1 = criterion(outSeq1.view(args.batch_size,-1), targetSeq.view(args.batch_size,-1))
RuntimeError: invalid argument 2: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Call .contiguous() before .view(). at /Users/soumith/code/builder/wheel/pytorch-src/aten/src/TH/generic/THTensor.cpp:280`
