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

Method DestroyStream

oneflow/core/ep/cpu/cpu_device.cpp:30–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28Stream* CpuDevice::CreateStream() { return new CpuStream(this); }
29
30void CpuDevice::DestroyStream(Stream* stream) { delete stream; }
31
32void CpuDevice::CreateEvents(Event** events, size_t count) {
33 for (size_t i = 0; i < count; ++i) { events[i] = new CpuEvent(); }

Callers 8

~CpuStreamContextMethod · 0.45
~GenericStreamContextMethod · 0.45
~CudaStreamContextMethod · 0.45
ApplyMethod · 0.45
TestCacheFunction · 0.45
TestKeyValueStoreFunction · 0.45
~StreamGuardMethod · 0.45
~EpStreamPolicyBaseMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestCacheFunction · 0.36
TestKeyValueStoreFunction · 0.36
~StreamGuardMethod · 0.36