This commit fixes merge issues from #404
Signed-off-by: Vladimir Plazun <v.plazun@partner.samsung.com>
/// \param[in] strides
/// \param[in] paddings
void translate(Index &translatedIndex, const Index &sourceIndex, const Index &kernelIndex,
- const Index &strides, const Index &paddings);
+ const Shape &strides, const Index &paddings);
} // namespace impl
} // namespace interpreter
+#include <cassert>
+
#include "interpreter/ops/common.h"
namespace nncc
{
assert(translatedIndex.rank() == sourceIndex.rank());
- for (uint32_t d = 0; d < outputIndex.rank(); ++d)
+ for (uint32_t d = 0; d < translatedIndex.rank(); ++d)
{
translatedIndex.at(d) = sourceIndex.at(d) * strides.dim(d) + kernelIndex.at(d) - paddings.at(d);
}