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

Method AllocatesOpaqueHandle

tensorflow/core/framework/allocator.h:165–165  ·  view source on GitHub ↗

Returns true if this allocator allocates an opaque handle rather than the requested number of bytes. This method returns false for most allocators, but may be used by special-case allocators that track tensor usage. If this method returns true, AllocateRaw() should be invoked for all values of `num_bytes`, including 0. NOTE: It is the caller's responsibility to track whether an allocated object

Source from the content-addressed store, hash-verified

163 // destructors for complex objects, since there is no backing store for the
164 // tensor in which to place their outputs.
165 virtual bool AllocatesOpaqueHandle() const { return false; }
166
167 // Returns the user-requested size of the data allocated at
168 // 'ptr'. Note that the actual buffer allocated might be larger

Callers 4

TensorMethod · 0.45
AllocatesOpaqueHandleMethod · 0.45
RunCtorMethod · 0.45
RunDtorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected