Closed mtmarsh2 closed 8 years ago
Yes, @ for matrix multiplication was added in 3.5. I haven't tested it on 3.4 but you can replace that line with:
gram = feat.dot(feat.T) / np.float32(feat.size)
to see if there are any more issues with 3.4. There is one other matrix multiplication that needs replacing.
On Fri, Sep 9, 2016 at 2:40 PM, Michael Marshall notifications@github.com wrote:
Hi, I'm using Python3.4 and ran "python3 style_transfer.py -h" and got the error:
File "style_transfer.py", line 44 gram = feat @ feat.T / np.float32(feat.size)
Specifically with the '@' symbol. Would this have something to do with me using 3.4 and not 3.5?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/crowsonkb/style_transfer/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AEcPfpOYb3BojoyviEkDzLba61JOukUcks5qodJlgaJpZM4J5fhp .
I replaced the matrix multiplications with their 3.4-compatible forms, but I still haven't tested it on 3.4.
Hi, I'm using Python3.4 and ran "python3 style_transfer.py -h" and got the error:
Specifically with the '@' symbol. Would this have something to do with me using 3.4 and not 3.5?