MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / PyTensorObject_zero_

Function PyTensorObject_zero_

oneflow/api/python/framework/tensor.cpp:320–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320static PyObject* PyTensorObject_zero_(PyObject* self, PyObject* unused) {
321 HANDLE_ERRORS
322 ASSERT(EagerLocalTensorZeros(PyTensor_Unpack(self)));
323 Py_XINCREF(self);
324 return self;
325 END_HANDLE_ERRORS
326}
327
328std::vector<Symbol<SbpParallel>> RawSbpBToP(Symbol<NdSbp> nd_sbp) {
329 std::vector<Symbol<SbpParallel>> new_nd_sbp;

Callers

nothing calls this directly

Calls 1

EagerLocalTensorZerosFunction · 0.85

Tested by

no test coverage detected