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

Function PyTensor_New

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

Source from the content-addressed store, hash-verified

852}
853
854PyObject* PyTensor_New(const std::shared_ptr<Tensor>& data) {
855 return PyTensor_wrap<Tensor>(data, /*bind_pyobj=*/nullptr);
856}
857
858PyObject* PyParameter_New(const std::shared_ptr<Parameter>& data) {
859 return PyTensor_wrap<Parameter>(data, /*bind_pyobj=*/nullptr);

Callers 15

PyTensorObject_castFunction · 0.85
PyTensorObject_diagFunction · 0.85
PyTensorObject_diagonalFunction · 0.85
PyTensorObject_cpuFunction · 0.85
PyTensorObject_cudaFunction · 0.85
PyTensorObject_varFunction · 0.85
PyTensorObject_stdFunction · 0.85
PyTensorObject_softplusFunction · 0.85
PyTensorObject_view_asFunction · 0.85
PyTensorObject_transposeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected