[TF FE] Correct Deconvolution for NCHW layout (#12751)
* [TF FE] Correct Deconvolution for NCHW layout Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com> * Revert Deconvolution implementation and work around -1 for SS Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com> Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
This commit is contained in:
parent
7369ce2e4e
commit
3bc7ce1d04
@ -77,7 +77,7 @@ OutputVector translate_conv_2d_backprop_input_op(const NodeContext& node) {
|
||||
|
||||
// initially think that output shape defined for NCHW layout
|
||||
auto ss_begin = make_shared<Constant>(element::i64, Shape{1}, std::vector<int64_t>{2});
|
||||
auto ss_end = make_shared<Constant>(element::i64, Shape{1}, std::vector<int64_t>{-1});
|
||||
auto ss_end = make_shared<Constant>(element::i64, Shape{1}, std::vector<int64_t>{4});
|
||||
auto ss_strides = make_shared<Constant>(element::i64, Shape{1}, std::vector<int64_t>{1});
|
||||
|
||||
// change range of indices for spatial dimensions in case NHWC layout
|
||||
|
@ -79,7 +79,7 @@ OutputVector translate_conv_3d_backprop_input_v2_op(const NodeContext& node) {
|
||||
|
||||
// initially think that output shape defined for NCDHW layout
|
||||
auto ss_begin = make_shared<Constant>(element::i64, Shape{1}, std::vector<int64_t>{2});
|
||||
auto ss_end = make_shared<Constant>(element::i64, Shape{1}, std::vector<int64_t>{-1});
|
||||
auto ss_end = make_shared<Constant>(element::i64, Shape{1}, std::vector<int64_t>{5});
|
||||
auto ss_strides = make_shared<Constant>(element::i64, Shape{1}, std::vector<int64_t>{1});
|
||||
|
||||
// change range of indices for spatial dimensions in case NDHWC layout
|
||||
|
Loading…
Reference in New Issue
Block a user