Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AddOneBody (0.15 sec)

  1. tensorflow/cc/ops/while_loop_test.cc

      return s.status();
    }
    
    Status AddOneBody(const Scope& s, const std::vector<Output>& inputs,
                      std::vector<Output>* outputs) {
      outputs->push_back(ops::Add(s, inputs[0], 1));
      return s.status();
    }
    
    TEST_F(WhileLoopTest, Basic) {
      // Create loop: while (i < 10) i += 1
      Init(1);
      CreateLoop(LessThanTenCond, AddOneBody);
    
      // Verify some output invariants
      WhileContext* while_ctx;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 22:30:58 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top