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

Class ArgumentSpec

tensorflow/java/src/gen/cc/op_specs.h:56–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54};
55
56class ArgumentSpec {
57 public:
58 // A specification for an operation argument
59 //
60 // op_def_name: argument name, as known by TensorFlow core
61 // var: a variable to represent this argument in Java
62 // type: the tensor type of this argument
63 // description: a description of this argument, in javadoc
64 // iterable: true if this argument is a list
65 ArgumentSpec(const string& op_def_name, const Variable& var, const Type& type,
66 const string& description, bool iterable)
67 : op_def_name_(op_def_name),
68 var_(var),
69 type_(type),
70 description_(description),
71 iterable_(iterable) {}
72
73 const string& op_def_name() const { return op_def_name_; }
74 const Variable& var() const { return var_; }
75 const Type& type() const { return type_; }
76 const string& description() const { return description_; }
77 bool iterable() const { return iterable_; }
78
79 private:
80 const string op_def_name_;
81 const Variable var_;
82 const Type type_;
83 const string description_;
84 const bool iterable_;
85};
86
87class AttributeSpec {
88 public:

Callers 2

CreateInputFunction · 0.85
CreateOutputFunction · 0.85

Calls

no outgoing calls

Tested by 2

CreateInputFunction · 0.68
CreateOutputFunction · 0.68