huguyuehuhu/HCN-pytorch

metrics_mean = {metric: np.mean([x[metric] for x in summ]) for metric in summ[0]}

xiaoiker opened this issue · 2 comments

Hello,
I met a problem with this line. The error is:
File "/appl/soft/ai/miniconda3/envs/pytorch-1.3.0-1/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 3257, in mean
out=out, **kwargs)
File "/appl/soft/ai/miniconda3/envs/pytorch-1.3.0-1/lib/python3.7/site-packages/numpy/core/_methods.py", line 161, in _mean
ret = ret.dtype.type(ret / rcount)
AttributeError: 'torch.dtype' object has no attribute 'type'

I did try torch.mean(torch.stack()), however it still not work. Do you have some seggestions?

Caused by PyTorch version updating, please use PyTorch (0.4.0).

@xiaoiker Hello, have you solved this problem?
@huguyuehuhu Hello, I use PyTorch 0.4.0, but it did not work.