Skip to content

Commit 2e75f89

Browse files
junjiang-labcopybara-github
authored andcommitted
Keep dynamic shape for tfl.fill ops by using SymInt.
PiperOrigin-RevId: 773058628
1 parent fe1307c commit 2e75f89

File tree

1 file changed

+2
-2
lines changed
  • ai_edge_torch/odml_torch/experimental/torch_tfl

1 file changed

+2
-2
lines changed

ai_edge_torch/odml_torch/experimental/torch_tfl/_ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def tfl_concatenation(
130130
return torch.cat(tensors, dim=dim)
131131

132132

133-
@custom_op_with_fake("tfl::fill", schema="(int[] x, Any y) -> Tensor")
134-
def tfl_fill(dims: Sequence[int], fill_value: Any) -> torch.Tensor:
133+
@custom_op_with_fake("tfl::fill", schema="(SymInt[] x, Any y) -> Tensor")
134+
def tfl_fill(dims: Sequence[torch.SymInt], fill_value: Any) -> torch.Tensor:
135135
return torch.full(dims, fill_value)
136136

137137

0 commit comments

Comments
 (0)