MCPcopy Create free account
hub / github.com/pytorch/executorch / test_contiguous_stride_from_shape

Method test_contiguous_stride_from_shape

exir/tests/test_tensor.py:186–189  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

184 make_allocation_info(**kwargs)
185
186 def test_contiguous_stride_from_shape(self) -> None:
187 shape = (2, 3, 4)
188 stride = contiguous_stride_from_shape(torch.Size(shape))
189 self.assertEqual((12, 4, 1), stride)
190
191 def test_dim_order_from_stride(self) -> None:
192 # shape = (4)

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.45

Tested by

no test coverage detected