geek-ai / Texygen

A text generation benchmarking platform
MIT License
863 stars 203 forks source link

How does the operator '@' work? #9

Closed DaoD closed 6 years ago

DaoD commented 6 years ago

To whom it may concern,

Hi, I find a problem in the RankGAN code. The link is here

self.scores = tf.reshape(self.feature @ tf.transpose(self.reference, perm=[1, 0]), [-1])

I wonder how does this operator @ work.

Thanks.

desire2020 commented 6 years ago

Hello, for python 3.x, TensorFlow supports operator @, which stands for matrix multiplication. Hope this helps.

DaoD commented 6 years ago

@desire2020 Thanks.