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 support? #23

Open
nirmalsinghania2008 opened this issue Jan 28, 2019 · 5 comments
Open

Keras support? #23

nirmalsinghania2008 opened this issue Jan 28, 2019 · 5 comments

Comments

@nirmalsinghania2008
Copy link

Hi Devs,
I really liked the clean API of sparkflow for distributed training. Is it possible to run keras code using sparkflow?

@dmmiller612
Copy link
Contributor

I haven't actually tried this, but I am guessing you could use tf.keras.layers (and maybe the default keras layers? Not sure). The optimizers will still need to be tensorflow though. We provided an abstraction for some of the optimizers in sparkflow.graph_utils, and just like keras, you can specify by string the optimizer that you want to use.

@nirmalsinghania2008
Copy link
Author

tf.keras should work I guess, will check.

Thanks.

@Marijse-vdberg
Copy link

Hi, are there any updates on this thread? Has tf.keras been tried and does this work?

Thanks

@dmmiller612
Copy link
Contributor

When I get some time, I can provide an example. Since the graph gets created the same tf.leras should definitely work. You just won't be able to use the model.compile, etc from keras. I am currently working on some updates for tensorflow 2.0, where keras is a major feature in that release.

@maziyarpanahi
Copy link

I think you are on the right track by focusing on TF 2.0 where Keras is a first-class citizen. Also, TF 2.0 is much cleaner and much easier to use, so thanks for working on it @dmmiller612 👍

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

4 participants