MCPcopy Index your code
hub / github.com/pytorch/pytorch / flatten

Method flatten

torch/_numpy/_ndarray.py:296–297  ·  view source on GitHub ↗
(self: ArrayLike, order: NotImplementedType = "C")

Source from the content-addressed store, hash-verified

294
295 @normalizer
296 def flatten(self: ArrayLike, order: NotImplementedType = "C"):
297 return torch.flatten(self)
298
299 def resize(self, *new_shape, refcheck=False):
300 # NB: differs from np.resize: fills with zeros instead of making repeated copies of input.

Callers 15

rollFunction · 0.45
_nll_loss_ndFunction · 0.45
pdistFunction · 0.45
_inflate_exprFunction · 0.45
_tensor_to_half_valFunction · 0.45
_tensor_to_complex_valFunction · 0.45
_tensor_to_listFunction · 0.45
create_blocked_tensorFunction · 0.45
as1DbatchFunction · 0.45
bsr_scatter_mmFunction · 0.45
bsr_softmaxFunction · 0.45

Calls

no outgoing calls