Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for device_mgr_ (0.43 sec)

  1. tensorflow/compiler/jit/test_util.h

      Device* GetDevice(const string& device_name);
      FunctionLibraryRuntime* flr() { return flr_; }
    
     private:
      FunctionLibraryRuntime* flr_;
      std::unique_ptr<DeviceMgr> device_mgr_;
      std::unique_ptr<FunctionLibraryDefinition> lib_def_;
      std::unique_ptr<ProcessFunctionLibraryRuntime> pflr_;
    };
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc

                                            /*graph=*/nullptr);
      context_->Ref();
    
      device_mgr_ = CreateDeviceMgr(device_type_);
      if (!device_mgr_) return failure();
    
      // Type of params_.device is DeviceBase* so store it as Device* to access
      // derived class method.
      device_ = device_mgr_->ListDevices().front();
      params_.device = device_;
      params_.resource_manager = device_->resource_manager();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

            func_name_attrs, new_func_name, host_graph_func_name, host_compute_core,
            flr, fld, shape_inference_graphs, has_outside_compilation);
      }
    
     private:
      std::unique_ptr<DeviceMgr> device_mgr_;
      std::unique_ptr<ProcessFunctionLibraryRuntime> pflr_;
    };
    
    TEST_F(ExtractOutsideCompilationForFunctionTest, Basic) {
      // Build the XLA computation func.
      // "const0"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/saved_model/core/test_utils.h

    // Creates an EagerContext suitable for local tests. Does not take ownership
    // of `device_mgr`.
    EagerContextPtr CreateTestingEagerContext(DeviceMgr* device_mgr);
    
    // Converts a tensorflow::DatatypeSet to std::vector<DataType>.
    // This is useful for tests using GTest's ::testing::ValuesIn, since
    // DataTypeSet doesn't fullfill all the constraints of an STL-like iterable.
    std::vector<DataType> DataTypeSetToVector(DataTypeSet set);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/test_utils.cc

          DeviceFactory::NewDevice("CPU", {}, "/job:localhost/replica:0/task:0"));
    }
    
    EagerContextPtr CreateTestingEagerContext(DeviceMgr* device_mgr) {
      return EagerContextPtr(new EagerContext(
          SessionOptions(),
          tensorflow::ContextDevicePlacementPolicy::DEVICE_PLACEMENT_SILENT,
          /* async= */ false, device_mgr,
          /* device_mgr_owned= */ false, /* rendezvous= */ nullptr,
          /* cluster_flr= */ nullptr));
    }
    
    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/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.h

    #include "mlir/Pass/PassManager.h"  // from @llvm-project
    #include "mlir/Support/LLVM.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.h"
    #include "tensorflow/core/common_runtime/device_mgr.h"
    #include "tensorflow/core/framework/resource_mgr.h"
    #include "tensorflow/core/framework/tensor.h"
    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/status.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 21 15:49:06 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables.cc

    #include "mlir/Pass/Pass.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.h"
    #include "tensorflow/compiler/mlir/tensorflow/utils/session_utils.h"
    #include "tensorflow/core/common_runtime/device_mgr.h"
    #include "tensorflow/core/framework/device_base.h"
    #include "tensorflow/core/framework/rendezvous.h"
    #include "tensorflow/core/framework/resource_var.h"
    #include "tensorflow/core/framework/tensor.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 19:14:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/session_utils.cc

    #include "llvm/ADT/SmallSet.h"
    #include "llvm/ADT/StringRef.h"
    #include "mlir/Support/LLVM.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/utils/string_container_utils.h"
    #include "tensorflow/core/common_runtime/device_mgr.h"
    #include "tensorflow/core/framework/device.h"
    #include "tensorflow/core/framework/resource_var.h"
    
    namespace mlir {
    namespace tf_saved_model {
    
    std::string GetVariableName(TF::VarHandleOp var_handle_op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h"
    #include "tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.h"
    #include "tensorflow/core/common_runtime/device.h"
    #include "tensorflow/core/common_runtime/device_mgr.h"
    #include "tensorflow/core/framework/resource_mgr.h"
    #include "tensorflow/core/framework/resource_var.h"
    #include "tensorflow/core/framework/tensor.h"
    #include "tensorflow/core/platform/errors.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/session_utils.h

    tensorflow::Var* GetVariableFromSession(mlir::TF::VarHandleOp var_handle_op,
                                            llvm::StringRef device_name,
                                            const tensorflow::DeviceMgr* mgr);
    
    // Returns resource tensors from session for all variables in 'module'.
    absl::StatusOr<std::vector<tensorflow::Tensor>> GetResourcesFromSession(
        llvm::ArrayRef<TF::VarHandleOp> var_handle_ops,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top