Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
740
void TensorWrapper::_drop() {
741
imperative::apply(DTRCommand(DTRCommand::Drop), m_tensor->data());
742
}
743
744
PyObject* TensorWrapper::isscalar() {
745
if (m_tensor->is_scalar()) {
Callers
2
run_dtr_drop_copy_dev_tensor
Function · 0.80
test_drop_basic
Function · 0.80
Calls
3
DTRCommand
Class · 0.85
apply
Function · 0.50
data
Method · 0.45
Tested by
2
run_dtr_drop_copy_dev_tensor
Function · 0.64
test_drop_basic
Function · 0.64