mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-02 23:39:58 +00:00
Add warning about future computation change for ConvTranspose with auto_pad (#11984)
* Add warning about future computation change for Convtranspose with auto_pad * improve msg * update TODO to make lint happy * update more contents for warning and add if * valid was not infected * move it into kernel registration * parse auto_pad myself * try to use conv_transpose_attrs_.auto_pad directly
This commit is contained in:
parent
8ba8146650
commit
4eb54ff9a5
1 changed files with 9 additions and 1 deletions
|
|
@ -25,7 +25,15 @@ namespace onnxruntime {
|
|||
template <typename T>
|
||||
class ConvTranspose : public OpKernel {
|
||||
public:
|
||||
ConvTranspose(const OpKernelInfo& info) : OpKernel(info), conv_transpose_attrs_(info) {}
|
||||
ConvTranspose(const OpKernelInfo& info) : OpKernel(info), conv_transpose_attrs_(info) {
|
||||
if (conv_transpose_attrs_.auto_pad == AutoPadType::SAME_UPPER ||
|
||||
conv_transpose_attrs_.auto_pad == AutoPadType::SAME_LOWER) {
|
||||
// TODO(jcwchen): #9740 ORT 1.13 will correct the logic by switching them to meet ONNX spec
|
||||
LOGS_DEFAULT(WARNING) << "The existing bug in the padding distribution for auto_pad type"
|
||||
<< " SAME_UPPER/SAME_LOWER will be fixed in next ORT 1.13 release and hence the"
|
||||
<< " results of ConvTranspose operator using the above auto_pad type(s) will be different.";
|
||||
}
|
||||
}
|
||||
|
||||
Status PrePack(const Tensor& tensor, int input_idx, AllocatorPtr alloc,
|
||||
/*out*/ bool& is_packed,
|
||||
|
|
|
|||
Loading…
Reference in a new issue