MCPcopy
hub / github.com/tinygrad/tinygrad / contiguous

Method contiguous

tinygrad/tensor.py:1262–1266  ·  view source on GitHub ↗

Returns a contiguous tensor.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1260 # ***** unary ops *****
1261
1262 def contiguous(self, *args, **kwargs) -> Tensor:
1263 """
1264 Returns a contiguous tensor.
1265 """
1266 return self._apply_uop(UOp.contiguous, extra_args=args, **kwargs)
1267
1268 # ***** broadcasted elementwise ops *****
1269

Callers 10

fs_loadMethod · 0.95
fs_storeMethod · 0.95
decode_hevc_frameMethod · 0.95
custom_gemm_bwFunction · 0.95
_bufferMethod · 0.45
randMethod · 0.45
ctensorMethod · 0.45
_conv2d_winogradMethod · 0.45
dropoutMethod · 0.45
image_conv2dMethod · 0.45

Calls 1

_apply_uopMethod · 0.95

Tested by

no test coverage detected