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

Method view

torch/_numpy/_ndarray.py:327–330  ·  view source on GitHub ↗
(self, dtype)

Source from the content-addressed store, hash-verified

325 b[old_numel:].zero_()
326
327 def view(self, dtype):
328 torch_dtype = _dtypes.dtype(dtype).torch_dtype
329 tview = self.tensor.view(torch_dtype)
330 return ndarray(tview)
331
332 @normalizer
333 def fill(self, value: ArrayLike):

Callers 15

meta_aliasFunction · 0.45
_matrix_polynomial_valueFunction · 0.45
stftFunction · 0.45
native_group_normFunction · 0.45
stftFunction · 0.45
istftFunction · 0.45
rollFunction · 0.45
stackFunction · 0.45
unflattenFunction · 0.45
_block_diag_iterableFunction · 0.45
view_asFunction · 0.45
take_along_dimFunction · 0.45

Calls 2

ndarrayClass · 0.85
dtypeMethod · 0.45