Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SchedClosure (0.99 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/io_test.cc

                               absl::AnyInvocable<void()> fn) override {
        return nullptr;
      }
    
      bool GetCurrentThreadName(tsl::string* name) override { return false; }
    
      void SchedClosure(absl::AnyInvocable<void()> closure) override {}
    
      void SchedClosureAfter(int64_t micros,
                             absl::AnyInvocable<void()> closure) override {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/cc/training/coordinator_test.cc

      done->Notify();
    }
    
    TEST(CoordinatorTest, TestStopAndWaitOnStop) {
      Coordinator coord;
      EXPECT_EQ(coord.ShouldStop(), false);
    
      Notification about_to_wait;
      Notification done;
      Env::Default()->SchedClosure(
          std::bind(&WaitForStopThread, &coord, &about_to_wait, &done));
      about_to_wait.WaitForNotification();
      Env::Default()->SleepForMicroseconds(1000 * 1000);
      EXPECT_FALSE(done.HasBeenNotified());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 23 09:10:43 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  3. tensorflow/cc/training/queue_runner_test.cc

      // The expected behavior is the QueueRunner::Join() call is blocked until
      // Session::Close() is called.
      bool join_succeeded = false;
      Notification join_done;
      Env::Default()->SchedClosure(
          std::bind(&JoinThread, qr.get(), &join_succeeded, &join_done));
    
      Env::Default()->SleepForMicroseconds(10000000);
      EXPECT_EQ(join_succeeded, false);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Sep 21 06:27:51 UTC 2019
    - 14.7K bytes
    - Viewed (0)
Back to top