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

Method _drop

imperative/python/src/tensor.cpp:740–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740void TensorWrapper::_drop() {
741 imperative::apply(DTRCommand(DTRCommand::Drop), m_tensor->data());
742}
743
744PyObject* TensorWrapper::isscalar() {
745 if (m_tensor->is_scalar()) {

Callers 2

test_drop_basicFunction · 0.80

Calls 3

DTRCommandClass · 0.85
applyFunction · 0.50
dataMethod · 0.45

Tested by 2

test_drop_basicFunction · 0.64