aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/stream.h
diff options
context:
space:
mode:
authorGravatar Jingyue Wu <jingyue@google.com>2017-06-05 14:30:41 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-05 14:37:17 -0700
commit9e6899720ad0f7d6be11020ffc469dceeed5b344 (patch)
treee7bd7caefa611b9389e1019c7ba2e150e413182a /tensorflow/stream_executor/stream.h
parent827874c3071b36960f5ad614edcfcdd193692718 (diff)
[SE] Add cudnnTransformTensor to StreamExecutor.
PiperOrigin-RevId: 158062553
Diffstat (limited to 'tensorflow/stream_executor/stream.h')
-rw-r--r--tensorflow/stream_executor/stream.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/stream.h b/tensorflow/stream_executor/stream.h
index bc1d05cc08..fa58173115 100644
--- a/tensorflow/stream_executor/stream.h
+++ b/tensorflow/stream_executor/stream.h
@@ -1653,6 +1653,13 @@ class Stream {
DeviceMemory<uint8> *reserve_space_data,
ScratchAllocator *workspace_allocator);
+ // Enqueue onto the stream a operation that transforms a tensor.
+ // See DnnSupport::DoTransformTensor for more details.
+ Stream &ThenTransformTensor(const dnn::BatchDescriptor &input_desc,
+ const DeviceMemory<float> &input_data,
+ const dnn::BatchDescriptor &output_desc,
+ DeviceMemory<float> *output_data);
+
// (Synchronously) block the host code waiting for the operations
// entrained on the stream (enqueued to this point in program
// execution) to complete.