提交 005ead5a 编写于 作者: M Megvii Engine Team

docs(cpu/comp_node): note cpu_default()

GitOrigin-RevId: 3e3dbced65adc4393a95058a9d941155f80a88dd
上级 9415ba58
......@@ -885,7 +885,12 @@ bool CpuCompNode::CompNodeImpl::check_global_finalized(const char* reason) {
}
/* ======================== CompNode methods ======================== */
// CompNode get by default_cpu() is different from the CompNode which is
// produced by CompNode::load("cpu:default")
// default_cpu() is used for static infer and it is not allowed to send up the
// compute kernel
// CompNode::load("cpu:default") is "inplace cpu" which is in the
// CpuCompNode::Pool
CompNode CompNode::default_cpu() {
static Locator locator{DeviceType::CPU, Locator::DEVICE_CPU_DEFAULT, {-1}};
static auto empty_queue =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册