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

Function MakeHostMemCase

oneflow/core/memory/memory_case_util.cpp:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101MemoryCase MakeHostMemCase() {
102 MemoryCase mem_case;
103 mem_case.set_device_type(DeviceType::kCPU);
104 mem_case.set_device_id(0);
105 return mem_case;
106}
107
108bool IsHostMem(const MemoryCase& mem_case) { return mem_case.device_type() == DeviceType::kCPU; }
109

Callers 15

CopyLocalTensorDataToFunction · 0.85
InitDataRegstFunction · 0.85
InitCtrlRegstDescFunction · 0.85
ForwardDataContentMethod · 0.85
ExpandMaskIndexFunction · 0.85
GetTensorItemValueFunction · 0.85
_rnn_pack_sequence_implFunction · 0.85
_lstm_pack_sequence_implFunction · 0.85
operator()Method · 0.85

Calls 1

set_device_typeMethod · 0.80

Tested by

no test coverage detected