Skip to content

Commit be3dda2

Browse files
committed
up
1 parent 32446f2 commit be3dda2

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

backends/apple/coreml/enumerated_shape_utils.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -231,24 +231,3 @@ def _get_ct_inputs(ep, emap: _SymbolicShapeToEnumeratedShapeMap):
231231
ct.TensorType(name=name, shape=ct_enumerated_shape, dtype=ct_dtype)
232232
)
233233
return ct_inputs
234-
235-
236-
# inputs = (
237-
# torch.randn((3,5,10)),
238-
# torch.randn((3,5,10)),
239-
# )
240-
# class Model(torch.nn.Module):
241-
# def __init__(self):
242-
# super().__init__()
243-
# self.linear1 = torch.nn.Linear(10, 5)
244-
# self.linear2 = torch.nn.Linear(10, 5)
245-
# def forward(self, x, y):
246-
# return self.linear1(x).sum() + self.linear2(y)
247-
# model = Model()
248-
# dynamic_shapes = [{0: torch.export.Dim(name="i1", min=1, max=50), 1: torch.export.Dim("i2", min=1, max=10)}, {0: torch.export.Dim(name="i1", min=1, max=50), 1: torch.export.Dim("i2", min=1, max=10)}]
249-
# ep = torch.export.export(model.eval(), inputs, dynamic_shapes=dynamic_shapes)
250-
# enumerated_shapes = {"x": [[1, 3, 10], [5, 7, 10], [3, 9, 10]], "y": [[1, 3, 10], [5, 7, 10], [3, 9, 10]]}
251-
252-
253-
# emap = _SymbolicShapeToEnumeratedShapeMap.from_exported_program(ep, enumerated_shapes)
254-
# get_enumerated_ct_inputs(ep, emap)

0 commit comments

Comments
 (0)