Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetNonReplicatedTPU0 (0.28 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

      // Set the copy op's device to the first TPU.
      std::string device_str;
      if (replicated) {
        device_str = tensorflow::GetDeviceAliasForLogicalCore(0);
      } else if (failed(tensorflow::GetNonReplicatedTPU0(
                     tpu_copy_with_dynamic_shape_op, &device_str))) {
        return failure();
      }
    
      new_device_launch_op = builder.create<tf_device::LaunchOp>(
          tpu_copy_with_dynamic_shape_op->getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h

        llvm::SmallVector<std::string, 8>& core_to_host);
    
    // Returns the first TPU device, for use in the non-replicated case. The list of
    // TPU devices is retrived from `op`'s module ancestor.
    mlir::LogicalResult GetNonReplicatedTPU0(mlir::Operation* op,
                                             std::string* tpu0_device);
    
    // Returns the CPU of the first TPU device, for use in the non-replicated case.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

              devices, &host_device))) {
        return mlir::failure();
      } else {
        core_to_host.push_back(host_device);
        return mlir::success();
      }
    }
    
    mlir::LogicalResult GetNonReplicatedTPU0(mlir::Operation* op,
                                             std::string* tpu0_device) {
      // Fetch the TPU devices.
      mlir::ModuleOp moduleOp = op->getParentOfType<mlir::ModuleOp>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
Back to top