tensorflow / benchmarks

A benchmark framework for Tensorflow
Apache License 2.0
1.14k stars 630 forks source link

VariableV1 does not exist in /tensorflow/python/ops/variables.py #545

Closed Juthorian closed 10 months ago

Juthorian commented 10 months ago

VariableV1 seems to have been moved to /tensorflow/python/ops/variable_v1.py.

In benchmarks/scripts/tf_cnn_benchmarks/models/model.py there is an import for variables to access VariableV1 but this will not exist and will cause an error. Need to change import to use variable_v1 instead.

reedwm commented 10 months ago

This was fixed internally, I imported the latest changes in.

Unfortunately, running tf_cnn_benchmarks.py is still failing with the error: ModuleNotFoundError: No module named 'tf_keras'. I'll try to see if there is an easy fix, but if not, I don't think this will get fixed. tf_cnn_benchmarks is deprecated and unmaintained, as the README states. I recommend using another implementation of CNN models instead, like the TensorFlow Official Models

reedwm commented 10 months ago

I fixed the error so tf_cnn_benchmarks works with the latest tf-nightly now