Home | History | Annotate | Download | only in optimizers

Lines Matching defs:noop

49 TEST_F(DependencyOptimizerTest, NoOp) {
128 EXPECT_EQ("NoOp", node.op());
155 // "neg" should be turned into a NoOp with a control dependency from
225 auto noop1 = ops::NoOp(s);
226 auto noop2 = ops::NoOp(s.WithControlDependencies(x));
244 if (node.name() == "NoOp" || node.name() == "NoOp_1") {
259 // NoOp with a single input- and two output dependencies.
260 auto noop = ops::NoOp(s.WithControlDependencies(x).WithDevice("/CPU:1"));
261 // NoOp with a two input- and a single output dependency.
262 auto noop_1 = ops::NoOp(
266 s.WithControlDependencies({noop.operation}).WithDevice("/CPU:1"), x);
268 s.WithControlDependencies({noop.operation, noop_1.operation})
292 // NoOp with a single input- and two output dependencies.
293 auto noop = ops::NoOp(s.WithControlDependencies(x));
294 // NoOp with a two input- and a single output dependency.
296 ops::NoOp(s.WithControlDependencies(x).WithControlDependencies(y));
297 Output id = ops::Identity(s.WithControlDependencies({noop.operation}), x);
299 s.WithControlDependencies({noop.operation, noop_1.operation}), y);
317 if (node.name() == "NoOp" || node.name() == "NoOp_1") {