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

Method BasePointer

tensorflow/lite/arena_planner.cc:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41ArenaPlanner::~ArenaPlanner() {}
42
43int64_t ArenaPlanner::BasePointer(TfLiteAllocationType type) {
44 if (type == kTfLiteArenaRwPersistent) {
45 return persistent_arena_.BasePointer();
46 }
47 if (type == kTfLiteArenaRw) {
48 return arena_.BasePointer();
49 }
50 return 0;
51}
52
53TfLiteStatus ArenaPlanner::ResetAllocations() {
54 TF_LITE_ENSURE_STATUS(arena_.Clear());

Callers 1

GetOffsetMethod · 0.45

Calls

no outgoing calls

Tested by 1

GetOffsetMethod · 0.36