aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/dnn.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-06-20 10:27:41 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-20 10:30:57 -0700
commit44cf398a79677edb44491473043a8f2d95babdac (patch)
tree30c47a932b700aa60d0da3ce2113af8d6bb2f090 /tensorflow/stream_executor/dnn.h
parentc7c5e32fb79fff83814f15f347c7e85d36c221e0 (diff)
[SE] Support alpha scale in cudnnTransformTensor
PiperOrigin-RevId: 159578357
Diffstat (limited to 'tensorflow/stream_executor/dnn.h')
-rw-r--r--tensorflow/stream_executor/dnn.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/stream_executor/dnn.h b/tensorflow/stream_executor/dnn.h
index 8c8ac8662d..f12aa6d38b 100644
--- a/tensorflow/stream_executor/dnn.h
+++ b/tensorflow/stream_executor/dnn.h
@@ -1980,13 +1980,14 @@ class DnnSupport {
// input_data: the device memory region that contains the input tensor.
// output_desc: specifies the shape and the data layout of the output tensor.
// output_type: the data type of the output tensor.
+ // scale: an element-wise scaling factor to apply.
// output_data: the device memory region that contains the output tensor.
virtual bool DoTransformTensor(Stream* stream,
const dnn::BatchDescriptor& input_desc,
dnn::DataType input_type,
const DeviceMemoryBase& input_data,
const dnn::BatchDescriptor& output_desc,
- dnn::DataType output_type,
+ dnn::DataType output_type, float scale,
DeviceMemoryBase* output_data) {
return false;
}