title: Bazel doesn't let me use TensorShape constructor
body: <p>I am working on a TF project. I want to create a TF Tensor of a certain shape {batch_size,rows,cols,channels}. </p>
  
  <p>Now doing this: </p>
  
  <pre><code>  tensorflow::Tensor T(tensorflow::DT_FLOAT, tensorflow::TensorShape({1,rows,cols,channels}));
  </code></pre>
  
  <p>Should work as I have seen it work <a href="https://gist.github.com/kyrs/9adf86366e9e4f04addb" rel="nofollow noreferrer">here</a>.</p>
  
  <p>Now when I try to compile using bazel ( with the project created with the instruction <a href="https://stackoverflow.com/questions/33620794/how-to-build-and-use-google-tensorflow-c-api">here</a>)</p>
  
  <p>However Bazel doesn't like it so it gives me this error: </p>
  
  <blockquote>
    <p>In instantiation of 'std::__cxx11::string* tensorflow::internal::Check_LTImpl(const T1&amp;, const T2&amp;, const char*) [with T1 = unsigned int; T2 = int; std::__cxx11::string = std::__cxx11::basic_string]':</p>
  </blockquote>
  
  <p>EDIT: </p>
  
  <p><a href="http://pastebin.com/RnDuC7Pb" rel="nofollow noreferrer">Full error here.</a> </p>
  
  <p>The Code in question <a href="http://pastebin.com/qPYi0KbR" rel="nofollow noreferrer">here</a> and <a href="http://pastebin.com/ZZCBQHsN" rel="nofollow noreferrer">here</a>. </p>
  
  <p><a href="http://pastebin.com/YuhiBUAn" rel="nofollow noreferrer">The BUILD file.</a></p>