File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
core/conversion/converters/impl Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ namespace {
13
13
bool add_conv_deconv (ConversionCtx* ctx, const torch::jit::Node* n, args& args) {
14
14
// Input to conv/deconv
15
15
auto in = args[0 ].ITensor ();
16
- // if (in->getType() == nvinfer1::DataType::kINT32) {
17
- // LOG_DEBUG(
18
- // "Found type " << in->getType() << " in aten::convolution, casting to "
19
- // << nvinfer1::DataType::kFLOAT << " for compatibility.");
20
- // in = castITensor(ctx, in, nvinfer1::DataType::kFLOAT);
21
- // }
16
+ if (in->getType () == nvinfer1::DataType::kINT32 ) {
17
+ LOG_DEBUG (
18
+ " Found type " << in->getType () << " in aten::convolution, casting to "
19
+ << nvinfer1::DataType::kFLOAT << " for compatibility." );
20
+ in = castITensor (ctx, in, nvinfer1::DataType::kFLOAT );
21
+ }
22
22
// Conv /deconv parameters
23
23
auto stride = util::toDims (args[3 ].unwrapToIntList ());
24
24
auto padding = util::toDims (args[4 ].unwrapToIntList ());
You can’t perform that action at this time.
0 commit comments