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

Workable example on normal DNN model #12240

Open
tonitick opened this issue May 8, 2024 · 0 comments
Open

Workable example on normal DNN model #12240

tonitick opened this issue May 8, 2024 · 0 comments

Comments

@tonitick
Copy link

tonitick commented May 8, 2024

Hello, I am new to XLA and trying to experiment with the aot + cpu settings. The only official document I found is https://openxla.org/xla/tf2xla/tfcompile which is based on https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/aot., but it only contains single operator examples (e.g., tfmatmul).

I have tried to use keras to train and save a model to tf format using model.save(model_save_path, save_format='tf'), according to https://www.tensorflow.org/tutorials/keras/save_and_load. It gives 2 files "keras_metadata.pb" and "saved_model.pb". I tried to use saved_model.pb for tfcompile but it gives the following error:

2024-05-07 21:59:52.126604: F tensorflow/compiler/aot/tfcompile_main.cc:95] Non-OK-status: status status: DATA_LOSS: Can't parse tensorflow/compiler/aot/custom/test_mnist.pb as binary proto
Target //tensorflow/compiler/aot/custom:test_mnist failed to build

Does anyone know how to solve this or provide a workable example on a normal DNN model? Thanks.

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

1 participant