gram-ai / capsule-networks

A PyTorch implementation of the NIPS 2017 paper "Dynamic Routing Between Capsules".
https://arxiv.org/abs/1710.09829
1.73k stars 316 forks source link

Syntax error: invalid syntax on line 65 #16

Open Ahmedest61 opened 6 years ago

Ahmedest61 commented 6 years ago

I'm trying to run the code and its giving me syntax error on line 65 specifically at (@) ^ SyntaxError. Any reason for it anyone?

gdshen commented 6 years ago

You need to use Python 3.6. "@" is a syntax sugar for matrix multiplication.