Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ClusterFuncOp (0.87 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc

      return llvm::formatv("requires attribute '{0}'", attribute).str();
    }
    
    // Populates a TPUCompileMetadataProto with StepMarkerLocation from a
    // `tf_device::ClusterFuncOp`.
    LogicalResult SetMetadataProtoStepMarkerLocation(
        tf_device::ClusterFuncOp op,
        tensorflow::tpu::TPUCompileMetadataProto* metadata) {
      auto step_marker_location =
          op->getAttrOfType<StringAttr>(kStepMarkerLocationAttr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc

    }
    
    void TPUResourceReadsWritesPartitioningPass::runOnOperation() {
      llvm::SmallVector<tf_device::ClusterFuncOp, 4> cluster_funcs;
      getOperation()->walk([&cluster_funcs](tf_device::ClusterFuncOp cluster_func) {
        cluster_funcs.push_back(cluster_func);
      });
      for (tf_device::ClusterFuncOp cluster_func : cluster_funcs)
        if (failed(PartitionResourceReadsWrites(cluster_func)))
          return signalPassFailure();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

    }
    
    void TPUSpaceToDepthPass::runOnOperation() {
      std::optional<tf_device::ClusterFuncOp> cluster_func;
      // Space to depth only supports training loop.
      auto func_result = getOperation().walk([&](tf_device::ClusterFuncOp cluster) {
        cluster_func = cluster;
        return WalkResult::interrupt();
      });
    
      // Return if there is no tf_device::ClusterFuncOp in training loop.
      if (!func_result.wasInterrupted() || !cluster_func.has_value()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

        return WalkResult::advance();
      });
      if (result_init.wasInterrupted()) return signalPassFailure();
      llvm::SmallVector<tf_device::ClusterFuncOp> to_be_erased;
      OpBuilder builder(&getContext());
      auto result = getOperation().walk([&](tf_device::ClusterFuncOp op) {
        if (failed(TF::HasValidCompilationAndReplicationAttributes(*op)))
          return WalkResult::interrupt();
        // Skip non-tpu device cluster_func.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

    // XlaSharding op.
    void IdentifyXlaShardingForComputationInputs(
        const llvm::SmallVector<std::string>& logical_device_vec,
        bool infer_from_computation, mlir::tf_device::ClusterFuncOp cluster_func,
        mlir::func::FuncOp func, Builder* builder,
        OptionalOpShardingVector& sharding_for_args) {
      // Look up function definition from module.
      Block& function_block = func.front();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

                  mlir::StringAttr::get(op->getContext(), hlosharding->ToString()));
    }
    
    mlir::LogicalResult ExtractInputsForLogicalDevices(
        const int num_cores_per_replica,
        mlir::tf_device::ClusterFuncOp cluster_func, mlir::OpBuilder* builder,
        llvm::SmallVectorImpl<llvm::SmallVector<mlir::Value, 4>>* input_list) {
      // Initialize the input list for each logical devices.
      input_list->reserve(num_cores_per_replica);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      // Returns whether it's legal to inline a call to a function.
      bool isLegalToInline(Operation* call, Operation* callable,
                           bool wouldBeCloned) const final {
        if (isa<ClusterFuncOp>(call)) return false;
        return true;
      }
    
      // Returns if its legal to inline 'src' region into the 'dest' region
      // attached to a TF Device operation.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top