Ahhh!  Well that got it to run on cpu.  When i run it on GPU, I get the following:
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-355-5f0610597548> in <module>
      9     # Forward pass
     10     outputs = model(inputs)
---> 11     loss = tweedieloss(outputs, targets)
     12     print(loss)
     13     # keep the loss so we can plot it later

<ipython-input-345-982fe7ade6d7> in tweedieloss(predicted, observed)
     23     p = torch.tensor(1.5)
     24 
---> 25     QLL = torch.pow(predicted, (-p))*(((predicted*observed)/(1-p)) - ((torch.pow(predicted, 2))/(2-p)))
     26 
     27     return torch.mean(-torch.abs(QLL))

RuntimeError: iter.device(arg).is_cuda() INTERNAL ASSERT FAILED at C:/w/1/s/tmp_conda_3.7_100118/conda/conda-bld/pytorch_1579082551706/work/aten/src\ATen/native/cuda/Loops.cuh:197, please report a bug to PyTorch. 

Not sure how I’m supposed to report the bug.