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

Function AsDeviceMemory

tensorflow/core/kernels/fft_ops.cc:295–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293namespace {
294template <typename T>
295se::DeviceMemory<T> AsDeviceMemory(const T* cuda_memory) {
296 se::DeviceMemoryBase wrapped(const_cast<T*>(cuda_memory));
297 se::DeviceMemory<T> typed(wrapped);
298 return typed;
299}
300
301template <typename T>
302se::DeviceMemory<T> AsDeviceMemory(const T* cuda_memory, uint64 size) {

Callers 15

operator()Method · 0.70
ComputeMethod · 0.70
ComputeMethod · 0.70
ComputeMethod · 0.70
operator()Method · 0.70
AllocateBytesMethod · 0.70
AllocateBytesMethod · 0.70
operator()Method · 0.70
ComputeMethod · 0.70
launchMethod · 0.70
launchMethod · 0.70
operator()Method · 0.70

Calls

no outgoing calls

Tested by 4

MakeReductionTestCaseMethod · 0.40
MakeGatherTestCaseMethod · 0.40
MakeBroadcastTestCaseMethod · 0.40
VerifyResultsMethod · 0.40