Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for RuntimeDevices (0.2 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

      auto cluster = builder.create<mlir::tf_device::ClusterOp>(
          mlir::UnknownLoc::get(&context), result_types);
      cluster->setAttr(kDeviceAssignmentAttr, builder.getArrayAttr({}));
    
      mlir::TF::RuntimeDevices devices;
      std::string host_device;
      EXPECT_TRUE(mlir::failed(
          GetHostDeviceOutsideComputation(devices, cluster, &host_device)));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

    }
    
    bool HasTPUDevice(const mlir::TF::RuntimeDevices& devices) {
      for (const auto& device : devices.device_names()) {
        if (device.has_type && device.type == "TPU") return true;
      }
      return false;
    }
    
    mlir::LogicalResult GetHostDeviceOutsideCompilationInGenericPipeline(
        mlir::TF::RuntimeDevices devices, std::string* host_device) {
      for (const auto& device : devices.device_names()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h

    // Returns true if the devices list contain any TPU devices
    bool HasTPUDevice(const mlir::TF::RuntimeDevices& devices);
    
    // Returns the host device used for outside compilation in generic pipeline.
    mlir::LogicalResult GetHostDeviceOutsideCompilationInGenericPipeline(
        mlir::TF::RuntimeDevices devices, std::string* host_device);
    
    // Parses XLA compilation and execution devices from a tf_device.cluster and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

    // cluster to before the cluster.
    mlir::LogicalResult LiftHeadOutsideCompiledOps(
        OpBuilder* builder,
        const mlir::TF::SideEffectAnalysis& side_effect_analysis,
        const mlir::TF::RuntimeDevices& devices, mlir::tf_device::ClusterOp cluster,
        std::string* host_device, bool* cluster_updated) {
      llvm::SmallVector<Operation*, 4> head_outside_compiled_ops =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

    }
    
    LogicalResult GetTpuDeviceAssignment(
        ClusterOp cluster, ReplicateOp replicate, mlir::ModuleOp module,
        absl::StatusOr<TPUDeviceAssignment>& status_or_tpu_device_assignment) {
      mlir::TF::RuntimeDevices devices;
      if (failed(tensorflow::GetDevicesFromOp(module, &devices))) return failure();
    
      uint32_t num_replicas = replicate.getN();
    
      auto num_cores_per_replica_attr = cluster->getAttrOfType<mlir::IntegerAttr>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

    using Permutation = SmallVector<int64_t, 4>;
    
    void LayoutAssignmentPass::runOnOperation() {
      func::FuncOp func = getOperation();
    
      // Get runtime devices information from the closest parent module.
      RuntimeDevices devices;
      if (failed(::tensorflow::GetDevicesFromOp(func->getParentOfType<ModuleOp>(),
                                                &devices)))
        return signalPassFailure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

          new_parallel_execute, builder);
      if (failed(result)) return failure();
    
      return TF::RemoveSingletonParallelExecuteOp(new_parallel_execute, builder);
    }
    
    void TPURewritePass::runOnOperation() {
      TF::RuntimeDevices devices;
      if (failed(tensorflow::GetDevicesFromOp(getOperation(), &devices)))
        return signalPassFailure();
    
      // Collect compilation results.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top