From 61f6622945d8ef339c99c4b437f985c62aa81bcf Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Wed, 1 Jun 2022 17:24:15 -0700 Subject: Remove dilation from transpose_conv2d op It is not in the spec and is being removed from serialization Change-Id: I82a102de37d8eb75210088dfda2df9b2fadb9c74 Signed-off-by: Eric Kunze --- reference_model/src/ops/tensor_ops.cc | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/reference_model/src/ops/tensor_ops.cc b/reference_model/src/ops/tensor_ops.cc index 6144dbc..94f4c72 100644 --- a/reference_model/src/ops/tensor_ops.cc +++ b/reference_model/src/ops/tensor_ops.cc @@ -1535,12 +1535,6 @@ int OpTransposeConv2d::checkTensorAttributes() return 1; } - if (attribute->dilation().size() != 2) - { - printNodeValidationError("OpTransposeConv2d: illegal size for attribute dilation"); - return 1; - } - if (attribute->output_shape().size() != 4) { printNodeValidationError("OpTransposeConv2d: illegal size for attribute output_shape"); @@ -1565,16 +1559,6 @@ int OpTransposeConv2d::checkTensorAttributes() } } - // TODO: Remove dilation once schema updated - for (int32_t i : attribute->dilation()) - { - if (i != 1) - { - printNodeValidationError("OpTransposeConv2d: Dilation is deprecated and must be set to one"); - return 1; - } - } - for (int d = 0; d < 4; d++) { if (attribute->output_shape()[d] != this->output->getShape()[d]) -- cgit v1.2.1