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

Method MaybeAddRef

tensorflow/core/framework/node_def_builder.h:172–174  ·  view source on GitHub ↗

Makes dt a ref type if that is what the input_arg specifies.

Source from the content-addressed store, hash-verified

170
171 // Makes dt a ref type if that is what the input_arg specifies.
172 DataType MaybeAddRef(const OpDef::ArgDef* input_arg, DataType dt) {
173 return input_arg->is_ref() ? MakeRefType(dt) : dt;
174 }
175
176 // Returns true if an attr named `name` is already present in the node_def_.
177 // If such an attr is already present and `value` is not equal to the present

Callers

nothing calls this directly

Calls 2

MakeRefTypeFunction · 0.85
is_refMethod · 0.80

Tested by

no test coverage detected