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

Function CastPyArg2AttrInt

paddle/fluid/pybind/op_function_common.cc:342–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342void CastPyArg2AttrInt(PyObject* obj,
343 paddle::framework::AttributeMap& attrs, // NOLINT
344 const std::string& key,
345 const std::string& op_type,
346 ssize_t arg_pos) {
347 attrs[key] = CastPyArg2Int(obj, op_type, arg_pos);
348}
349
350int64_t CastPyArg2Long(PyObject* obj,
351 const std::string& op_type,

Callers 1

Calls 1

CastPyArg2IntFunction · 0.85

Tested by

no test coverage detected