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

Function CastPyArg2AttrString

paddle/fluid/pybind/op_function_common.cc:530–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530void CastPyArg2AttrString(PyObject* obj,
531 paddle::framework::AttributeMap& attrs, // NOLINT
532 const std::string& key,
533 const std::string& op_type,
534 ssize_t arg_pos) {
535 attrs[key] = CastPyArg2String(obj, op_type, arg_pos);
536}
537
538std::vector<bool> CastPyArg2Booleans(PyObject* obj,
539 const std::string& op_type,

Callers 1

Calls 1

CastPyArg2StringFunction · 0.85

Tested by

no test coverage detected