MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MergeArg

Function MergeArg

tensorflow/core/framework/op_gen_lib.cc:341–348  ·  view source on GitHub ↗

Updates base_arg based on overrides in new_arg.

Source from the content-addressed store, hash-verified

339
340// Updates base_arg based on overrides in new_arg.
341void MergeArg(ApiDef::Arg* base_arg, const ApiDef::Arg& new_arg) {
342 if (!new_arg.rename_to().empty()) {
343 base_arg->set_rename_to(new_arg.rename_to());
344 }
345 if (!new_arg.description().empty()) {
346 base_arg->set_description(new_arg.description());
347 }
348}
349
350// Updates base_attr based on overrides in new_attr.
351void MergeAttr(ApiDef::Attr* base_attr, const ApiDef::Attr& new_attr) {

Callers 1

MergeApiDefsFunction · 0.85

Calls 2

descriptionMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected