Skip to content

Commit e1b68fc

Browse files
ruoqianguonarendasan
authored andcommitted
chore: return self in aten::extend
Signed-off-by: Ruoqian Guo <[email protected]>
1 parent 33c523d commit e1b68fc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/conversion/conversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ void ConvertBlockToNetDef(
416416
EvaluateConditionalBlock(ctx, n);
417417
} else if (to_eval) {
418418
auto eval = EvaluateNode(ctx, n);
419-
if (eval) {
419+
if (eval && n->outputs().size() > 0) {
420420
if (n->outputs().size() > 1) { // For ListUnpack scenario
421421
if (eval.value().isTuple()) {
422422
auto eval_list = eval.value().toTuple();

core/conversion/evaluators/aten.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ auto aten_registrations TORCHTRT_UNUSED =
295295
for (int64_t i = 0; i < other_size; i++) {
296296
self.push_back(other.get(i));
297297
}
298+
return self;
298299
} else {
299300
TORCHTRT_THROW_ERROR(
300301
"Unimplemented data type for aten::extend.t evaluator: "

0 commit comments

Comments
 (0)