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

Method GetAllocator

tensorflow/core/framework/op_kernel_test.cc:352–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350 DummyDevice(Env* env, bool save) : DeviceBase(env), save_(save) {}
351 bool RequiresRecordingAccessedTensors() const override { return save_; }
352 Allocator* GetAllocator(AllocatorAttributes /*attr*/) override {
353 return cpu_allocator();
354 }
355
356 private:
357 bool save_;

Callers

nothing calls this directly

Calls 1

cpu_allocatorFunction · 0.85

Tested by

no test coverage detected