fix: Handle nonetype pad value for Constant pad by peri044 · Pull Request #1712 · pytorch/TensorRT (original) (raw)

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@peri044

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant and/or add your own.

Checklist:

@peri044

Signed-off-by: Dheeraj Peri peri.dheeraj@gmail.com

@peri044

Signed-off-by: Dheeraj Peri peri.dheeraj@gmail.com

[github-actions[bot]](/apps/github-actions)

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

[github-actions[bot]](/apps/github-actions)

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/lowering/passes/replace_aten_pad.cpp b/tmp/changes.txt index 23e62e1..dd5e721 100644 --- a/home/runner/work/TensorRT/TensorRT/core/lowering/passes/replace_aten_pad.cpp +++ b/tmp/changes.txt @@ -101,7 +101,7 @@ void ReplaceAtenPad(std::shared_ptrtorch::jit::Graph& graph) { torch::jit::Node* new_node; auto pad_value = it->inputs()[3]; auto is_pad_none = torch::jit::toIValue(it->inputs()[3])->isNone();

ERROR: Some files do not conform to style guidelines

[github-actions[bot]](/apps/github-actions)

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/lowering/passes/replace_aten_pad.cpp b/tmp/changes.txt index 23e62e1..dd5e721 100644 --- a/home/runner/work/TensorRT/TensorRT/core/lowering/passes/replace_aten_pad.cpp +++ b/tmp/changes.txt @@ -101,7 +101,7 @@ void ReplaceAtenPad(std::shared_ptrtorch::jit::Graph& graph) { torch::jit::Node* new_node; auto pad_value = it->inputs()[3]; auto is_pad_none = torch::jit::toIValue(it->inputs()[3])->isNone();

ERROR: Some files do not conform to style guidelines

[github-actions[bot]](/apps/github-actions)

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

@peri044

Signed-off-by: Dheeraj Peri peri.dheeraj@gmail.com

[github-actions[bot]](/apps/github-actions)

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

[github-actions[bot]](/apps/github-actions)

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

narendasan

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Labels