Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keras word2vec is much more faster than tensorflow word2vec ? #3

Open
muthiyanbhushan opened this issue Jan 23, 2018 · 1 comment
Open

Comments

@muthiyanbhushan
Copy link

muthiyanbhushan commented Jan 23, 2018

Thanks for your work.
I had a question about word2vec.

I ran both of your codes of word2vec viz Keras_word2vec.py and tf_word2vec.py !!

Keras word2vec with Tensorflow backend seems faster than Tensorflow word2vec. Ideally it should not. Keras is indirectly calling Tensorflow.
Tensorflow code took 1182 sec to run 15 iterations whereas Keras just took 796 seconds to run 15 iterations.

How is Keras faster than Tensorflow?

Can you please help me?
My CPU instance:

AWS Instance: C4.4 Large (Compute Optimized).
Intel® Xeon® CPU ES-2666 V3 @ 2.90 GHz
No. of CPU Cores = 16 2-CPU with 8 Cores/CPU
Memory = 30 GB
FPU = Yes

Thanks.

@Santosh-Gupta
Copy link

it looks like the tensorflow uses a different function to calculate loss compared to the keras version, so the two are not comparable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants