MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / get_ptr

Method get_ptr

paddle/utils/optional.h:301–303  ·  view source on GitHub ↗

Returns a pointer to the value if this is initialized, otherwise, returns NULL. No-throw

Source from the content-addressed store, hash-verified

299 // returns NULL.
300 // No-throw
301 pointer_const_type get_ptr() const {
302 return m_initialized ? get_ptr_impl() : 0;
303 }
304 pointer_type get_ptr() { return m_initialized ? get_ptr_impl() : 0; }
305
306 bool is_initialized() const { return m_initialized; }

Callers 15

AssignRawKernelFunction · 0.45
MoePermuteKernelFunction · 0.45
RnnKernelFunction · 0.45
FlashAttnKernelBaseFunction · 0.45
DeQuantizeLinearKernelFunction · 0.45
RMSNormFwdKernelFunction · 0.45
RMSNormBwdKernelFunction · 0.45
InstanceNormKernelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected