Quantcast
Viewing latest article 1
Browse Latest Browse All 2

Answer by Gabriel Ziegler for RuntimeError: expected device cpu and dtype Byte but got device cpu and dtype Bool

As stated by @iacolippo and in the comment session and myDennisCode, the problem really was dependency versions. I had torchvision==0.4.0 (which confused me) and torch==1.2.0.

To fix the problem, simply install torch==0.4.1 and torchvision==0.2.1.


Viewing latest article 1
Browse Latest Browse All 2

Trending Articles