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.
2 parents 1395110 + bf6645f commit 8236218Copy full SHA for 8236218
core/partitioning/partitioning.cpp
@@ -178,7 +178,8 @@ void resolveTRTNonTensorInputs(PartitionedGraph& segmented_blocks) {
178
179
void registerSegmentsOutputs(PartitionedGraph& segmented_blocks, torch::jit::Block* block) {
180
// find the corresponding raw values in original global graph for this segmented block's inputs/outputs
181
- std::set<torch::jit::Value*> input_values;
+ auto cmp = [](torch::jit::Value* a, torch::jit::Value* b) { return a->unique() < b->unique(); };
182
+ std::set<torch::jit::Value*, decltype(cmp)> input_values(cmp);
183
for (auto& seg_block : segmented_blocks) {
184
for (auto& input : seg_block.raw_inputs()) {
185
input_values.insert(input);
0 commit comments