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

Error executing tensorflow resnet50 #14

Open
fenz opened this issue Feb 1, 2022 · 1 comment
Open

Error executing tensorflow resnet50 #14

fenz opened this issue Feb 1, 2022 · 1 comment

Comments

@fenz
Copy link

fenz commented Feb 1, 2022

I'm trying to executed this benchmark: https://github.com/mlcommons/inference_results_v1.0/tree/master/closed/Intel/code/resnet50/tensorflow but when running it I have an error like:

2022-02-01 02:43:47.633895: E tensorflow/core/grappler/optimizers/meta_optimizer.cc:581] model_pruner failed: Invalid argument: Graph does not contain terminal node ArgMax.
2022-02-01 02:43:47.634168: E tensorflow/core/grappler/optimizers/meta_optimizer.cc:581] model_pruner failed: Invalid argument: Graph does not contain terminal node ArgMax.
2022-02-01 02:43:47.652754: E tensorflow/core/grappler/optimizers/meta_optimizer.cc:581] model_pruner failed: Invalid argument: Graph does not contain terminal node ArgMax.
Running inference failedInvalid argument: Tensor ArgMax:0, specified in either feed_devices or fetch_devices was not found in the GraphRunning inference failed

I thought it is something related with the calibration process since the process was looking for a "conf.yaml" (https://github.com/mlcommons/inference_results_v1.0/blob/master/closed/Intel/calibration/TensorFlow/mlperf.patch#L148) which is not specified, so I looked a bit in the calibration tool repo and found a possible example which I used: https://github.com/intel/neural-compressor/blob/mlperf_v0.7/examples/tensorflow/image_recognition/resnet50_v1_5.yaml
The configuration is using ArgMax:0 as output node (https://github.com/mlcommons/inference_results_v1.0/blob/master/closed/Intel/code/resnet50/tensorflow/backend/net_config.h#L64) but it seems it doesn't find it in the model.

Does anyone have an idea what the error can be?

@fenz
Copy link
Author

fenz commented Mar 20, 2022

The patch file changed from version v0.7 to v1.0. The error I was getting was in the old version. In this one the "conf.yaml" file is actually generated as part of the patch code. So this issue can be closed (but maybe makes sense to update the v0.7 to fix the issue you have there).

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