Skip to content

Commit 0b3cf89

Browse files
committed
chore: Fix linting
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent 8db194f commit 0b3cf89

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

core/partitioning/partitioning.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ void resolveNonTensorInputs(PartitionedGraph& segmented_blocks) { // , std::shar
160160
}
161161
}
162162

163-
// For each non-tensor value in the usage_counts map, keep updating the produce_id to the earliest segmented block that has/produces it.
163+
// For each non-tensor value in the usage_counts map, keep updating the produce_id to the earliest segmented block
164+
// that has/produces it.
164165
for (auto& use : usage_counts) {
165166
// Set the produce_id to the segmented block index that contains/produces this non-tensor torch::jit::Value
166167
if (segmented_blocks[i].contain_raw_value(use.first)) {
@@ -169,7 +170,6 @@ void resolveNonTensorInputs(PartitionedGraph& segmented_blocks) { // , std::shar
169170
}
170171
}
171172

172-
173173
std::unordered_set<int> updated_segments;
174174
for (auto& use : usage_counts) {
175175
auto use_info = use.second;
@@ -316,7 +316,6 @@ std::vector<SegmentedBlock> segment_graph(torch::jit::Block* block, const Partit
316316
segmented_blocks.emplace_back(SegmentedBlock::kTorch, std::vector<torch::jit::Node*>{n});
317317
continue;
318318
} else if (n->kind() == torch::jit::prim::Loop) {
319-
320319
if (!pytorch_nodes.empty()) {
321320
segmented_blocks.emplace_back(SegmentedBlock::kTorch, pytorch_nodes);
322321
pytorch_nodes.clear();

core/partitioning/shape_analysis.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ void getSegmentsOutputByRunning(
5656
for (auto& input : seg_block.raw_inputs()) {
5757
TRTORCH_CHECK(
5858
ivalues_maps.count(input),
59-
"Could not find torch::jit::Value* " << input->debugName() << " produced from " << util::node_info(input->node()) << " in lowering graph for mini graph input.\n");
59+
"Could not find torch::jit::Value* " << input->debugName() << " produced from "
60+
<< util::node_info(input->node())
61+
<< " in lowering graph for mini graph input.\n");
6062
if (input->node()->kind() == torch::jit::prim::Param) {
6163
jit_inputs_ivalues.push_back(ivalues_maps[input]);
6264
} else if (input->type()->isSubtypeOf(torch::jit::TensorType::get())) {

0 commit comments

Comments
 (0)