abseil error building tensorflow 1.15

173 views
Skip to first unread message

Brian Kramer

unread,
Sep 26, 2020, 10:04:51 AM9/26/20
to Abseil.io
Good morning, Abseil.io.

Interestingly, I never heard of Abseil until this morning when I got this error after upgrading from Tensorflow 1.11 to 1.15:

./tensorflow/stream_executor/stream_executor_pimpl.h:775:22: error: no template named 'make_unique' in namespace 'absl'; did you mean 'std::make_unique'?
  auto kernel_base = absl::make_unique<TypedKernel<Args...>>(this);
                     ^~~~~~~~~~~~~~~~~
                     std::make_unique
/home/bkramer/codulus/release/external/install/include/memory:3026:1: note: 'std::make_unique' declared here
make_unique(_Args&&... __args)

Can anyone point me in the right direction, while i go off and try to figure this out also on my own?

Thanks,
Brian Kramer

Andy Getzendanner

unread,
Sep 26, 2020, 10:41:41 AM9/26/20
to Brian Kramer, Abseil.io
That file (stream_executor_pimpl.h) needs to #include "absl/memory/memory.h" in order to use absl::make_unique.  If you're building with Bazel, you'll probably also need to add a corresponding dependency on "@com_google_absl//absl/memory".


You can either upgrade TF further to at least that version, try to patch that commit onto the version you've got, or make the #include change manually.

--
You received this message because you are subscribed to the Google Groups "Abseil.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to abseil-io+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/abseil-io/4d0b69f2-4211-4bc6-9156-8a20ca944ff5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages