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

Function get

paddle/utils/optional.h:623–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621// No-throw
622template <class T>
623inline typename optional<T>::reference_const_type get(optional<T> const& opt) {
624 return opt.get();
625}
626
627template <class T>
628inline typename optional<T>::reference_type get(optional<T>& opt) { // NOLINT

Callers 15

get_value_orMethod · 0.70
CastToPirAttributeMapMethod · 0.50
ConstructPdOpSumFunction · 0.50
BuildMethod · 0.50
CallMethod · 0.50
CallMethod · 0.50
BuildMethod · 0.50

Calls 2

getMethod · 0.45
get_ptrMethod · 0.45

Tested by 15

MakeSchemaTestArgFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
CreateAttributeMapFunction · 0.40
CreateDenseTensorOpFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
CreateAttributeMapFunction · 0.40