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

Class ParamNames

tensorflow/python/framework/python_op_gen_internal.h:48–67  ·  view source on GitHub ↗

Names that corresponds to a single input parameter.

Source from the content-addressed store, hash-verified

46
47// Names that corresponds to a single input parameter.
48class ParamNames {
49 public:
50 // Create param based on Arg.
51 ParamNames(const string& name, const string& rename_to) : name_(name) {
52 rename_to_ = AvoidPythonReserved(rename_to);
53 }
54
55 // Get original parameter name.
56 string GetName() const { return name_; }
57
58 // Get the name to rename the parameter to. Note that AvoidPythonReserved
59 // has already been applied.
60 string GetRenameTo() const { return rename_to_; }
61
62 private:
63 // Original parameter name.
64 string name_;
65 // API name for this parameter.
66 string rename_to_;
67};
68
69class GenPythonOp {
70 public:

Callers 1

CodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected