-
Notifications
You must be signed in to change notification settings - Fork 226
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
AttributeError: module 'tensorflow.contrib.tensorrt' has no attribute 'calib_graph_to_infer_graph' when trying to Calibrate #106
Comments
just get answer. |
As @zhangqijun said, TF1.14 has a new API for calibration. Closing. Please reopen if the problem persists. |
I find myself in a similar situation as @Meresmata...
I tried several solutions that I found around on the Internet, however the approach that got me the furthest seems to be the one in this post on the Nvidia developer forum.
However this results in the
but I ended up with the same error.
|
I think i have met the same issue in tf1.14. Did you fix the problem? |
any progress? I met the same problem: |
@liuxingbin please update to latest TF2. TF1 is more than two years old, even if there was a bug we couldn't release a fix. |
Actually, I did. My tf is 2.4. Please refer to this question: |
Hi,
I am trying TensorRT. It works fine as long as I don't try getting the INT8 to work. I got two problems:
1.: is similar to issue #56
2.: occures when trying to calibrate an Resnet v1.5 or SSD-ResNet-1.5. For reproduceability: I used the run_all.sh script from this side.
Maschine:
Ubuntu 18.04, Intel(R) Core(TM) i7-6850K, NVidia 1070, also tried it with the Quadro 5000
Cuda: 10.0
CuDNN: 7
Tensorflow: compiled from source v1.13.1 with TensorRT 5.1.2
When running run_all.sh I get the error:
When I curcumvent the line 137 in my own code and don't calibrate the net, the conversion is still working. At least I don't get any errors, but as described in issue #56 the execution for INT8 is almost as slow as for nor converted FP32 and much slower than converted FP32 and FP16.
I tried it with the Quadro 5000 card for both ResNet and SSD-ResNet. With the same outcome and with a compiled Tensorflow v1.14 against TensorRT 5.1.5 same outcome (tested for ResNet) for both Problems.
With kind regards
The text was updated successfully, but these errors were encountered: