diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-06-20 10:27:41 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-06-20 10:30:57 -0700 |
commit | 44cf398a79677edb44491473043a8f2d95babdac (patch) | |
tree | 30c47a932b700aa60d0da3ce2113af8d6bb2f090 /tensorflow/stream_executor/dnn.h | |
parent | c7c5e32fb79fff83814f15f347c7e85d36c221e0 (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.h | 3 |
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; } |