Home | History | Annotate | Download | only in graph

Lines Matching defs:ndef

68   NodeDef ndef;
69 ndef.set_name(g->NewName(kNodeLabel));
70 ndef.set_op("ZerosLike");
71 ndef.add_input(input.name());
72 AddNodeAttr("T", input.dtype(), &ndef);
74 Node* ret = g->AddNode(ndef, &s);
85 NodeDef ndef;
86 ndef.set_name(g->NewName(kNodeLabel));
87 ndef.set_op(kGradientOp);
97 ndef.add_input(nout.name());
101 ndef.add_input(nout.name());
104 CHECK_EQ(ndef.input_size(), num_x + num_y);
106 AddNodeAttr("Tin", in_types, &ndef);
110 AddNodeAttr("Tout", n->input_types(), &ndef);
116 AddNodeAttr("f", func, &ndef);
118 Node* ret = g->AddNode(ndef, &s);
281 NodeDef ndef;
282 ndef.set_name(graph_->NewName(kNodeLabel));
283 ndef.set_op("AddN"); // N-way Add
285 ndef.add_input(nout.name());
287 AddNodeAttr("N", static_cast<int64>(grads.size()), &ndef);
288 AddNodeAttr("T", dtype, &ndef);
290 Node* add = graph_->AddNode(ndef, &s);