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

Method __init__

backends/nxp/tests/models.py:206–210  ·  view source on GitHub ↗
(self, dims, starts, ends)

Source from the content-addressed store, hash-verified

204
205class SliceTensorModule(torch.nn.Module):
206 def __init__(self, dims, starts, ends):
207 super().__init__()
208 self.dims = dims
209 self.starts = starts
210 self.ends = ends
211
212 def do_slice(self, x):
213 slices = [slice(None)] * x.dim()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected