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
| 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 |
no outgoing calls
no test coverage detected