MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ReportAlloc

Method ReportAlloc

tensorflow/compiler/xrt/xrt_state.cc:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 };
45
46 Stats ReportAlloc(int64 device, int64 msize) {
47 mutex_lock lock(lock_);
48 Stats* device_stats = &stats_[device];
49 device_stats->count += 1;
50 device_stats->size += msize;
51 return *device_stats;
52 }
53
54 Stats ReportFree(int64 device, int64 msize) {
55 mutex_lock lock(lock_);

Callers 1

XRTBufferAllocationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected