jeudi 18 août 2016

Bazel doesn't let me use TensorShape constructor

I am working on a TF project. I want to create a TF Tensor of a certain shape {batch_size,rows,cols,channels}.

Now doing this:

  Tensor T(DT_FLOAT, TensorShape({1,rows,cols,channels}));

Should work as I have seen it work here.

Now when I try to compile using bazel ( with the project created with the instruction here)

However Bazel doesn't like it so it gives me this error:

In instantiation of 'std::__cxx11::string* tensorflow::internal::Check_LTImpl(const T1&, const T2&, const char*) [with T1 = unsigned int; T2 = int; std::__cxx11::string = std::__cxx11::basic_string]':

Aucun commentaire:

Enregistrer un commentaire