Syntax Error when running demo

I am currently trying to implement Style Transfer demo from, but whenever I run “python demo --model models/21styles.model” I receive the error message:

File “”, line 9, in
import utils
File “/home/digarage/Schreibtisch/PyTorch-Style-Transfer/experiments/”, line 144
src_flat_cov_eye = src_norm @ src_norm.t() + Variable(torch.eye(3).cuda())
SyntaxError: invalid syntax

Any idea what I could do to fix this?

I tried this in PyTorch 0.1, 02 and 0.4 to no success.

this is not a repo maintained by the pytorch team. maybe you should open on issue on their repo.