aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/stream.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-01-24 10:05:12 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-24 10:27:38 -0800
commiteb65eff6cc65875c67e7dbf1c2e63baa6664bb6f (patch)
tree7e92646fb31da8823f622e129e1199a31c89aead /tensorflow/stream_executor/stream.h
parent7f79424f63c5684a43d47de216ae152144ddeecf (diff)
Add options argument for DNN activation
This is useful for platform-dependent functionality. Change: 145432435
Diffstat (limited to 'tensorflow/stream_executor/stream.h')
-rw-r--r--tensorflow/stream_executor/stream.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/stream.h b/tensorflow/stream_executor/stream.h
index 8a8b4b1660..c7ca7ad050 100644
--- a/tensorflow/stream_executor/stream.h
+++ b/tensorflow/stream_executor/stream.h
@@ -514,6 +514,14 @@ class Stream {
const DeviceMemory<float> &input_data,
DeviceMemory<float> *output_data);
+ // Same as ThenActivate, but also takes an options argument that can be used
+ // for platform-specific option flags.
+ Stream &ThenActivateWithOptions(dnn::ActivationMode activation_mode,
+ const dnn::BatchDescriptor &dimensions,
+ const DeviceMemory<float> &input_data,
+ DeviceMemory<float> *output_data,
+ uint64 options);
+
Stream &ThenDepthConcatenate(
port::ArraySlice<dnn::BatchDescriptor> input_dimensions,
port::ArraySlice<const DeviceMemory<float> *> input_data,