You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TRTORCH_CHECK(util::volume(self_dims) == util::volume(other_dims), "Found inputs to elementwise operation do not have the same number of elements:\n Found: self " << self_dims << " other " << other_dims);
16
16
17
+
if (self_dims != other_dims) {
18
+
LOG_DEBUG("Input shape dont match inserting shuffle layers to reshape to " << self_dims);
19
+
auto other_shuffle = ctx->net->addShuffle(*other);
20
+
other_shuffle->setReshapeDimensions(self_dims);
21
+
other_shuffle->setName(std::string("[Reshape other to " + util::toStr(self_dims) + ']').c_str());
22
+
other = other_shuffle->getOutput(0);
23
+
}
24
+
25
+
17
26
nvinfer1::ILayer* ele;
18
27
if (scalar != 1) {
19
28
LOG_WARNING("Please verify scalar handling in add converter, channel axis set to 3 but scaling is uniform");
0 commit comments