Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A fatal error with 8-bit quantization in Tensorflow

I'm trying to run quantization model in Tensorflow using Bazel with my Ubuntu 16.04 system.

I ran the following command:

bazel build tensorflow/tools/quantization:quantize_graph

and here is the error:

ERROR: /tensorflow-master/tensorflow/contrib/verbs/BUILD:136:1: C++ compilation of rule '//tensorflow/contrib/verbs:rdma' failed (Exit 1).

In file included from tensorflow/contrib/verbs/rdma.cc:18:0: ./tensorflow/contrib/verbs/rdma.h:21:30: fatal error: infiniband/verbs.h: No such file or directory

compilation terminated.

Target //tensorflow/tools/quantization:quantize_graph failed to build

How can I solve this problem? Thanks in advance!

like image 379
R.Nancy Avatar asked Oct 30 '22 03:10

R.Nancy


2 Answers

Try installing libibverbs-dev using

sudo apt-get update
sudo apt-get install libibverbs-dev
like image 53
Amol B. Avatar answered Dec 06 '22 17:12

Amol B.


installing libibverbs-dev and librdmacm-dev using

sudo apt-get install libibverbs-dev
sudo apt-get install librdmacm-dev
like image 42
Lin Ming Avatar answered Dec 06 '22 17:12

Lin Ming