-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convolution cast #1609
Convolution cast #1609
Conversation
Signed-off-by: Dheeraj Peri <peri.dheeraj@gmail.com>
Signed-off-by: Dheeraj Peri <peri.dheeraj@gmail.com>
Signed-off-by: Dheeraj Peri <peri.dheeraj@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some changes that do not conform to C++ style guidelines:
diff --git a/home/runner/work/TensorRT/TensorRT/core/conversion/converters/impl/conv_deconv.cpp b/tmp/changes.txt
index a66dc56..5a8efff 100644
--- a/home/runner/work/TensorRT/TensorRT/core/conversion/converters/impl/conv_deconv.cpp
+++ b/tmp/changes.txt
@@ -15,8 +15,8 @@ bool add_conv_deconv(ConversionCtx* ctx, const torch::jit::Node* n, args& args)
auto in = args[0].ITensor();
if (in->getType() == nvinfer1::DataType::kINT32) {
LOG_DEBUG(
- "Found type " << in->getType() << " in aten::convolution, casting to "
- << nvinfer1::DataType::kFLOAT << " for compatibility.");
+ "Found type " << in->getType() << " in aten::convolution, casting to " << nvinfer1::DataType::kFLOAT
+ << " for compatibility.");
in = castITensor(ctx, in, nvinfer1::DataType::kFLOAT);
}
// Conv /deconv parameters
ERROR: Some files do not conform to style guidelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code conforms to Python style guidelines
@apbose can you set up precommit to auto lint your code when you commit? |
@@ -13,7 +13,12 @@ namespace { | |||
bool add_conv_deconv(ConversionCtx* ctx, const torch::jit::Node* n, args& args) { | |||
// Input to conv/deconv | |||
auto in = args[0].ITensor(); | |||
|
|||
if (in->getType() == nvinfer1::DataType::kINT32) { | |||
LOG_DEBUG( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this a warning
chore: Add FX core test
chore: Update dockerfile
Signed-off-by: Torch-TensorRT Github Bot <torch-tensorrt.github.bot@nvidia.com>
Signed-off-by: Torch-TensorRT Github Bot <torch-tensorrt.github.bot@nvidia.com>
Signed-off-by: Torch-TensorRT Github Bot <torch-tensorrt.github.bot@nvidia.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code conforms to C++ style guidelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code conforms to Python style guidelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code conforms to C++ style guidelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code conforms to Python style guidelines
Description
Cast the input to the convolution layer input to float since Iconvolution layer does not support INT32 layers as it is an index type. Fix for issue - 1573
Checklist: