UserWarning after upgrading

hello every, after i upgrade the pytorch, my code has follow warning, it took less memory, but become slower, can anyone give help me ? any reply will be appreciated.

/home/wen/anaconda3/lib/python2.7/site-packages/torch/autograd/_functions/compare.py:17: UserWarning: self and other not broadcastable, but have the same number of elements. Falling back to deprecated pointwise behavior. mask = getattr(a, cls.fn_name)(b) /home/wen/anaconda3/lib/python2.7/site-packages/torch/autograd/_functions/tensor.py:464: UserWarning: self and mask not broadcastable, but have the same number of elements. Falling back to deprecated pointwise behavior. return tensor.masked_select(mask)

2 Likes