Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CreateTestingDeviceMgr (0.26 sec)

  1. tensorflow/c/experimental/saved_model/core/ops/variable_ops_test.cc

      ImmediateTensorHandlePtr handle(context->CreateLocalHandle(tensor.get()));
      return handle;
    }
    
    class VariableOpsTest : public ::testing::Test {
     public:
      VariableOpsTest()
          : device_mgr_(testing::CreateTestingDeviceMgr()),
            ctx_(testing::CreateTestingEagerContext(device_mgr_.get())) {}
    
      EagerContext* context() { return ctx_.get(); }
    
     private:
      std::unique_ptr<StaticDeviceMgr> device_mgr_;
      EagerContextPtr ctx_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 21 19:26:54 UTC 2020
    - 3.8K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/test_utils.h

    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    namespace testing {
    
    // Creates a DeviceMgr suitable for local tests.
    std::unique_ptr<StaticDeviceMgr> CreateTestingDeviceMgr();
    
    // Creates an EagerContext suitable for local tests. Does not take ownership
    // of `device_mgr`.
    EagerContextPtr CreateTestingEagerContext(DeviceMgr* device_mgr);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/ops/restore_ops_test.cc

                          kSavedModelVariablesFilename);
    }
    
    class RestoreOpsTest : public ::testing::Test {
     public:
      RestoreOpsTest()
          : device_mgr_(testing::CreateTestingDeviceMgr()),
            ctx_(testing::CreateTestingEagerContext(device_mgr_.get())) {}
    
      EagerContext* context() { return ctx_.get(); }
    
     private:
      std::unique_ptr<StaticDeviceMgr> device_mgr_;
      EagerContextPtr ctx_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/saved_model/core/constant_loading_test.cc

    namespace {
    
    class ConstantTest : public ::testing::TestWithParam<
                             std::tuple<DataType, std::vector<int64_t>, bool>> {
     public:
      ConstantTest()
          : device_mgr_(testing::CreateTestingDeviceMgr()),
            ctx_(testing::CreateTestingEagerContext(device_mgr_.get())) {}
    
      EagerContext* context() { return ctx_.get(); }
    
     private:
      std::unique_ptr<StaticDeviceMgr> device_mgr_;
      EagerContextPtr ctx_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/test_utils.cc

    #include "tensorflow/core/platform/logging.h"
    #include "tensorflow/core/platform/test.h"
    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    namespace testing {
    
    std::unique_ptr<StaticDeviceMgr> CreateTestingDeviceMgr() {
      return std::make_unique<StaticDeviceMgr>(
          DeviceFactory::NewDevice("CPU", {}, "/job:localhost/replica:0/task:0"));
    }
    
    EagerContextPtr CreateTestingEagerContext(DeviceMgr* device_mgr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:13:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/core/tf_concrete_function_loading_test.cc

    namespace tensorflow {
    namespace {
    
    class SavedConcreteFunctionLoadingTest : public ::testing::Test {
     public:
      SavedConcreteFunctionLoadingTest()
          : device_mgr_(testing::CreateTestingDeviceMgr()),
            ctx_(testing::CreateTestingEagerContext(device_mgr_.get())) {}
    
      EagerContext* context() { return ctx_.get(); }
    
     private:
      std::unique_ptr<StaticDeviceMgr> device_mgr_;
      EagerContextPtr ctx_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top