Skip to content

Commit d7f7ec9

Browse files
committed
(//core): Added a variant for aten::split
Signed-off-by: Anurag Dixit <[email protected]>
1 parent f45cc30 commit d7f7ec9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/conversion/converters/impl/select.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,12 @@ auto select_registrations TORCHTRT_UNUSED =
344344
LOG_DEBUG("Converted split op into a list of IValues");
345345
return true;
346346
}})
347+
.pattern({"aten::split.sizes(Tensor(a -> *) self, int[] split_size, int dim=0) -> (Tensor[])",
348+
[](ConversionCtx* ctx, const torch::jit::Node* n, args& args) -> bool {
349+
add_split(ctx, n, args, true);
350+
LOG_DEBUG("Converted split op into a list of IValues");
351+
return true;
352+
}})
347353
.pattern({"aten::split.Tensor(Tensor(a) self, int split_size, int dim=0) -> (Tensor[])",
348354
[](ConversionCtx* ctx, const torch::jit::Node* n, args& args) -> bool {
349355
add_split(ctx, n, args, false);

0 commit comments

Comments
 (0)