Skip to content

Commit d6ae9ac

Browse files
committed
avoid BC-breaking change
1 parent 88a9bd4 commit d6ae9ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

aten/src/ATen/native/ConvUtils.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,11 @@ inline at::MemoryFormat miopen_conv_suggest_memory_format(const at::Tensor& inpu
392392
return at::MemoryFormat::Contiguous;
393393
}
394394

395+
// deprecated, but to remove would be BC-breaking
396+
inline bool miopen_conv_use_channels_last(const at::Tensor& input, const at::Tensor& weight) {
397+
return miopen_conv_suggest_memory_format(input, weight) != at::MemoryFormat::Contiguous;
398+
}
399+
395400
inline bool mkldnn_conv_use_channels_last(const at::Tensor& input, const at::Tensor& weight) {
396401

397402
// disable NHWC for float64 input.

0 commit comments

Comments
 (0)