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

Method RequestedSize

tensorflow/core/common_runtime/sycl/sycl_allocator.cc:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81size_t SYCLAllocator::RequestedSize(const void* ptr) const {
82 mutex_lock lock(mu_);
83 if (!sycl_device_) {
84 return 0;
85 }
86 const auto& buffer = sycl_device_->get_sycl_buffer(ptr);
87 return buffer.get_size();
88}
89
90} // namespace tensorflow
91

Callers

nothing calls this directly

Calls 1

get_sizeMethod · 0.45

Tested by

no test coverage detected