JasonAtNvidia / JetsonTFBuild

Assistance script to build TensorFlow on an NVIDIA Jetson Module
MIT License
66 stars 22 forks source link

C++ compilation of rule '//tensorflow/contrib/tensorrt:trt_conversion' failed #15

Open dongmingsun opened 5 years ago

dongmingsun commented 5 years ago

Because TensorFlow's BatchToSpaceND has messy output on CUDA 9, the nvidia tech support asked me to revert to Jetpack 3.1 with CUDA 8.

I did so, but I met this problem (besides many errors I've already solved before this error):

ERROR: /home/nvidia/Documents/JetsonTFBuild-master/tensorflow/tensorflow/contrib/tensorrt/BUILD:213:1: C++ compilation of rule '//tensorflow/contrib/tensorrt:trt_conversion' failed (Exit 1)
tensorflow/contrib/tensorrt/convert/convert_nodes.cc: In member function 'nvinfer1::ITensor* tensorflow::tensorrt::convert::{anonymous}::Converter::TransposeTensor(nvinfer1::ITensor*, std::vector<int>)':
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:538:5: error: 'IShuffleLayer' is not a member of 'nvinfer1'
     nvinfer1::IShuffleLayer* layer = this->network()->addShuffle(*input_tensor);
     ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:538:30: error: 'layer' was not declared in this scope
     nvinfer1::IShuffleLayer* layer = this->network()->addShuffle(*input_tensor);
                              ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:538:55: error: 'class nvinfer1::INetworkDefinition' has no member named 'addShuffle'
     nvinfer1::IShuffleLayer* layer = this->network()->addShuffle(*input_tensor);
                                                       ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:539:5: error: 'Permutation' is not a member of 'nvinfer1'
     nvinfer1::Permutation permutation;
     ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:541:7: error: 'permutation' was not declared in this scope
       permutation.order[i] = order[i + 1] - 1;
       ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:543:30: error: 'permutation' was not declared in this scope
     layer->setFirstTranspose(permutation);
                              ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc: In function 'tensorflow::Status tensorflow::tensorrt::convert::{anonymous}::ConvertConv2DHelper(tensorflow::tensorrt::convert::{anonymous}::Converter&, const tensorflow::NodeDef&, const std::vector<tensorflow::tensorrt::convert::{anonymous}::TRT_TensorOrWeights>&, std::vector<tensorflow::tensorrt::convert::{anonymous}::TRT_TensorOrWeights>*, int)':
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:1090:37: error: 'class nvinfer1::INetworkDefinition' has no member named 'addPadding'
     auto pad_layer = ctx.network()->addPadding(
                                     ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc: In function 'tensorflow::Status tensorflow::tensorrt::convert::{anonymous}::BinaryTensorOpTensor(tensorflow::tensorrt::convert::{anonymous}::Converter&, const tensorflow::NodeDef&, const nvinfer1::ITensor*, const nvinfer1::ITensor*, std::vector<tensorflow::tensorrt::convert::{anonymous}::TRT_TensorOrWeights>*)':
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:1146:15: error: 'kSUB' is not a member of 'nvinfer1::ElementWiseOperation'
       {"Sub", nvinfer1::ElementWiseOperation::kSUB},
               ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:1147:15: error: 'kDIV' is not a member of 'nvinfer1::ElementWiseOperation'
       {"Div", nvinfer1::ElementWiseOperation::kDIV},
               ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:1148:3: error: no matching function for call to 'std::unordered_map<std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation>::unordered_map(<brace-enclosed initializer list>)'
   };
   ^
In file included from /usr/include/c++/5/unordered_map:48:0,
                 from ./tensorflow/contrib/tensorrt/convert/convert_nodes.h:21,
                 from tensorflow/contrib/tensorrt/convert/convert_nodes.cc:16:
/usr/include/c++/5/bits/unordered_map.h:254:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::initializer_list<typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::value_type>, std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const hasher&, const allocator_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >; typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::value_type = std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hasher = std::hash<std::__cxx11::basic_string<char> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map(initializer_list<value_type> __l,
       ^
/usr/include/c++/5/bits/unordered_map.h:254:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >'
/usr/include/c++/5/bits/unordered_map.h:248:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::initializer_list<typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::value_type>, std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const allocator_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >; typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::value_type = std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map(initializer_list<value_type> __l,
       ^
/usr/include/c++/5/bits/unordered_map.h:248:7: note:   candidate expects 3 arguments, 4 provided
/usr/include/c++/5/bits/unordered_map.h:242:2: note: candidate: template<class _InputIterator> std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(_InputIterator, _InputIterator, std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const hasher&, const allocator_type&)
  unordered_map(_InputIterator __first, _InputIterator __last,
  ^
/usr/include/c++/5/bits/unordered_map.h:242:2: note:   template argument deduction/substitution failed:
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:1148:3: note:   cannot convert '{"Sub", <expression error>}' (type '<brace-enclosed initializer list>') to type 'std::unordered_map<std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation>::size_type {aka long unsigned int}'
   };
   ^
In file included from /usr/include/c++/5/unordered_map:48:0,
                 from ./tensorflow/contrib/tensorrt/convert/convert_nodes.h:21,
                 from tensorflow/contrib/tensorrt/convert/convert_nodes.cc:16:
/usr/include/c++/5/bits/unordered_map.h:235:2: note: candidate: template<class _InputIterator> std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(_InputIterator, _InputIterator, std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const allocator_type&)
  unordered_map(_InputIterator __first, _InputIterator __last,
  ^
/usr/include/c++/5/bits/unordered_map.h:235:2: note:   template argument deduction/substitution failed:
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:1148:3: note:   cannot convert '{"Sub", <expression error>}' (type '<brace-enclosed initializer list>') to type 'std::unordered_map<std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation>::size_type {aka long unsigned int}'
   };
   ^
In file included from /usr/include/c++/5/unordered_map:48:0,
                 from ./tensorflow/contrib/tensorrt/convert/convert_nodes.h:21,
                 from tensorflow/contrib/tensorrt/convert/convert_nodes.cc:16:
/usr/include/c++/5/bits/unordered_map.h:229:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const hasher&, const allocator_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hasher = std::hash<std::__cxx11::basic_string<char> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map(size_type __n, const hasher& __hf,
       ^
/usr/include/c++/5/bits/unordered_map.h:229:7: note:   candidate expects 3 arguments, 4 provided
/usr/include/c++/5/bits/unordered_map.h:225:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const allocator_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map(size_type __n, const allocator_type& __a)
       ^
/usr/include/c++/5/bits/unordered_map.h:225:7: note:   candidate expects 2 arguments, 4 provided
/usr/include/c++/5/bits/unordered_map.h:217:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::initializer_list<typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::value_type>, std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const hasher&, const key_equal&, const allocator_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >; typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::value_type = std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hasher = std::hash<std::__cxx11::basic_string<char> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_equal = std::equal_to<std::__cxx11::basic_string<char> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map(initializer_list<value_type> __l,
       ^
/usr/include/c++/5/bits/unordered_map.h:217:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >'
/usr/include/c++/5/bits/unordered_map.h:201:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&&, const allocator_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map(unordered_map&& __umap,
       ^
/usr/include/c++/5/bits/unordered_map.h:201:7: note:   candidate expects 2 arguments, 4 provided
/usr/include/c++/5/bits/unordered_map.h:191:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&, const allocator_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map(const unordered_map& __umap,
       ^
/usr/include/c++/5/bits/unordered_map.h:191:7: note:   candidate expects 2 arguments, 4 provided
/usr/include/c++/5/bits/unordered_map.h:182:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(const allocator_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map(const allocator_type& __a)
       ^
/usr/include/c++/5/bits/unordered_map.h:182:7: note:   candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/unordered_map.h:175:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map(unordered_map&&) = default;
       ^
/usr/include/c++/5/bits/unordered_map.h:175:7: note:   candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/unordered_map.h:172:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map(const unordered_map&) = default;
       ^
/usr/include/c++/5/bits/unordered_map.h:172:7: note:   candidate expects 1 argument, 4 provided
/usr/include/c++/5/bits/unordered_map.h:163:2: note: candidate: template<class _InputIterator> std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(_InputIterator, _InputIterator, std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const hasher&, const key_equal&, const allocator_type&)
  unordered_map(_InputIterator __first, _InputIterator __last,
  ^
/usr/include/c++/5/bits/unordered_map.h:163:2: note:   template argument deduction/substitution failed:
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:1148:3: note:   cannot convert '{"Sub", <expression error>}' (type '<brace-enclosed initializer list>') to type 'std::unordered_map<std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation>::size_type {aka long unsigned int}'
   };
   ^
In file included from /usr/include/c++/5/unordered_map:48:0,
                 from ./tensorflow/contrib/tensorrt/convert/convert_nodes.h:21,
                 from tensorflow/contrib/tensorrt/convert/convert_nodes.cc:16:
/usr/include/c++/5/bits/unordered_map.h:142:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const hasher&, const key_equal&, const allocator_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hasher = std::hash<std::__cxx11::basic_string<char> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_equal = std::equal_to<std::__cxx11::basic_string<char> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map(size_type __n,
       ^
/usr/include/c++/5/bits/unordered_map.h:142:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::unordered_map<std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation>::size_type {aka long unsigned int}'
/usr/include/c++/5/bits/unordered_map.h:132:7: note: candidate: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = std::__cxx11::basic_string<char>; _Tp = nvinfer1::ElementWiseOperation; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nvinfer1::ElementWiseOperation> >]
       unordered_map() = default;
       ^
/usr/include/c++/5/bits/unordered_map.h:132:7: note:   candidate expects 0 arguments, 4 provided
tensorflow/contrib/tensorrt/convert/convert_nodes.cc: In function 'tensorflow::Status tensorflow::tensorrt::convert::{anonymous}::ConvertPool(tensorflow::tensorrt::convert::{anonymous}::Converter&, const tensorflow::NodeDef&, const std::vector<tensorflow::tensorrt::convert::{anonymous}::TRT_TensorOrWeights>&, std::vector<tensorflow::tensorrt::convert::{anonymous}::TRT_TensorOrWeights>*)':
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:1273:37: error: 'class nvinfer1::INetworkDefinition' has no member named 'addPadding'
     auto pad_layer = ctx.network()->addPadding(
                                     ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc: In function 'tensorflow::Status tensorflow::tensorrt::convert::{anonymous}::ConvertPad(tensorflow::tensorrt::convert::{anonymous}::Converter&, const tensorflow::NodeDef&, const std::vector<tensorflow::tensorrt::convert::{anonymous}::TRT_TensorOrWeights>&, std::vector<tensorflow::tensorrt::convert::{anonymous}::TRT_TensorOrWeights>*)':
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:1737:3: error: 'IPaddingLayer' is not a member of 'nvinfer1'
   nvinfer1::IPaddingLayer* layer = ctx.network()->addPadding(
   ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:1737:28: error: 'layer' was not declared in this scope
   nvinfer1::IPaddingLayer* layer = ctx.network()->addPadding(
                            ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:1737:51: error: 'class nvinfer1::INetworkDefinition' has no member named 'addPadding'
   nvinfer1::IPaddingLayer* layer = ctx.network()->addPadding(
                                                   ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc: In function 'tensorflow::Status tensorflow::tensorrt::convert::{anonymous}::ConvertReshape(tensorflow::tensorrt::convert::{anonymous}::Converter&, const tensorflow::NodeDef&, const std::vector<tensorflow::tensorrt::convert::{anonymous}::TRT_TensorOrWeights>&, std::vector<tensorflow::tensorrt::convert::{anonymous}::TRT_TensorOrWeights>*)':
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:2028:3: error: 'IShuffleLayer' is not a member of 'nvinfer1'
   nvinfer1::IShuffleLayer* layer =
   ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:2028:28: error: 'layer' was not declared in this scope
   nvinfer1::IShuffleLayer* layer =
                            ^
tensorflow/contrib/tensorrt/convert/convert_nodes.cc:2029:22: error: 'class nvinfer1::INetworkDefinition' has no member named 'addShuffle'
       ctx.network()->addShuffle(*const_cast<nvinfer1::ITensor*>(tensor));
                      ^
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 15251.059s, Critical Path: 582.64s
INFO: 4138 processes: 4138 local.
FAILED: Build did NOT complete successfully

Building TensorFlow on TX2 is really breaking me down, and I really HATE bazel!