aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/dnn.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-04-30 06:59:23 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-04-30 07:01:55 -0700
commita5a51ad3a1200e2e5ef46c140bab717422e41ca2 (patch)
tree7c1e5ee890228c81ef57d6c6998a04dac79a29e2 /tensorflow/stream_executor/dnn.h
parent914796d5e9bc7b0c619b53c7eb24cfe7d6c7fb9b (diff)
Adding a depthwise convolution kernel op (with label 'cudnn_grouped_convolution') which forwards to cuDNN grouped convolutions.
PiperOrigin-RevId: 194780352
Diffstat (limited to 'tensorflow/stream_executor/dnn.h')
-rw-r--r--tensorflow/stream_executor/dnn.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/dnn.h b/tensorflow/stream_executor/dnn.h
index 0c2e083b39..18606eb717 100644
--- a/tensorflow/stream_executor/dnn.h
+++ b/tensorflow/stream_executor/dnn.h
@@ -543,6 +543,10 @@ class ConvolutionDescriptor {
pad_alignment_ = pad_alignment;
return *this;
}
+ ConvolutionDescriptor& set_group_count(int group_count) {
+ group_count_ = group_count;
+ return *this;
+ }
int64 zero_padding_height() const {
return GetDim(zero_padding_, DimIndex::Y);
}
@@ -566,6 +570,7 @@ class ConvolutionDescriptor {
int filter_stride(DimIndex dim) const { return GetDim(filter_strides_, dim); }
int dilation_rate(DimIndex dim) const { return GetDim(dilation_rates_, dim); }
PadAlignment pad_alignment() const { return pad_alignment_; }
+ int group_count() const { return group_count_; }
int ndims() const { return ndims_; }
std::vector<int64> strides() const { return filter_strides_; }
@@ -578,6 +583,7 @@ class ConvolutionDescriptor {
std::vector<int64> filter_strides_;
std::vector<int64> dilation_rates_;
PadAlignment pad_alignment_;
+ int group_count_;
int ndims_;
// TODO(leary) cudnn provides these fields, but need to characterize what
// their effect is -- they may be boolean rather than integral.