MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _watch

Method _watch

imperative/python/src/tensor.cpp:667–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667void TensorWrapper::_watch() {
668 m_tensor->data().watch();
669}
670
671PyObject* TensorWrapper::shape() {
672 auto shape = m_tensor->shape();

Callers

nothing calls this directly

Calls 2

watchMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected