We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18ba2cb + ab2ed5e commit 79cdf80Copy full SHA for 79cdf80
core/conversion/converters/impl/conv_deconv.cpp
@@ -13,7 +13,12 @@ namespace {
13
bool add_conv_deconv(ConversionCtx* ctx, const torch::jit::Node* n, args& args) {
14
// Input to conv/deconv
15
auto in = args[0].ITensor();
16
-
+ if (in->getType() == nvinfer1::DataType::kINT32) {
17
+ LOG_WARNING(
18
+ "Found type " << in->getType() << "in aten::convolution, casting to" << nvinfer1::DataType::kFLOAT
19
+ << " for compatibility.");
20
+ in = castITensor(ctx, in, nvinfer1::DataType::kFLOAT);
21
+ }
22
// Conv /deconv parameters
23
auto stride = util::toDims(args[3].unwrapToIntList());
24
auto padding = util::toDims(args[4].unwrapToIntList());
0 commit comments