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.
1 parent 4fa99ce commit 1980786Copy full SHA for 1980786
core/lowering/passes/replace_aten_pad.cpp
@@ -101,7 +101,7 @@ void ReplaceAtenPad(std::shared_ptr<torch::jit::Graph>& graph) {
101
torch::jit::Node* new_node;
102
auto pad_value = it->inputs()[3];
103
auto is_pad_none = torch::jit::toIValue(it->inputs()[3])->isNone();
104
- if(is_pad_none){
+ if (is_pad_none) {
105
pad_value = graph->insertConstant(0.0);
106
}
107
0 commit comments