Fix bug
authorA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 20 Mar 2018 09:26:31 +0000 (02:26 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 20 Mar 2018 09:30:28 +0000 (02:30 -0700)
PiperOrigin-RevId: 189712233

tensorflow/compiler/jit/xla_launch_util.cc

index 076cbd2..bb7316c 100644 (file)
@@ -169,7 +169,7 @@ void XlaComputationLaunchContext::PopulateOutputs(
   int output_num = 0;
   for (int i = 0; i < ctx->num_outputs(); ++i) {
     AllocatorAttributes alloc_attrs = ctx->output_alloc_attr(i);
-    Allocator* allocator = ctx->device()->GetAllocator(alloc_attrs);
+    Allocator* allocator = ctx->device()->GetAllocator({});
     if (tensor_info_manager_ && !alloc_attrs.on_host()) {
       allocator = tensor_info_manager_;
     }