Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for cluster_func (0.32 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/mark_input_output_aliases.mlir

    // RUN: tf-opt %s -tf-device-mark-input-output-aliases | FileCheck %s
    
    // The following tests check if the aliasing pairs are conservatively marked
    // correctly. In the following tests tf_device.cluster_func has inputs
    // coming from ReadVariableOp and outputs written to a resource using
    // AssignVariableOp. If a pair of input-output (say input at index `a` and
    // output at index `b`) read and write to the same resource, then those
    // input-output pairs alias each other.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 04:14:26 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/tpu_rewrite.mlir

    // Tests `tf_device.cluster_func` with missing `step_marker_location` attribute.
    
    module attributes {tf.versions = {producer = 888 : i32}, tf.devices = ["/job:worker/replica:0/task:0/device:CPU:0", "/job:worker/replica:0/task:0/device:TPU_SYSTEM:0", "/job:worker/replica:0/task:0/device:TPU:0"]} {
      func.func @bad_num_cores_per_replica() {
        // expected-error@+1 {{requires attribute 'step_marker_location'}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 172.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

          BuildSpaceToDepth(cluster_func, input, block_size, input_shape);
      cluster_func.setOperand(index, space_to_depth);
      return space_to_depth;
    }
    
    // Performs transformation for replicated inputs. Returns true if this is a
    // supported case (thus transform happened).
    bool HandleHostReplicatedInputs(int64_t index,
                                    tf_device::ClusterFuncOp cluster_func,
    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/utils/xla_rewrite_util_test.cc

      module->walk([&](mlir::tf_device::ClusterFuncOp cluster_func) {
        cluster_func_ops.push_back(cluster_func);
      });
      EXPECT_EQ(cluster_func_ops.size(), 1);
    
      EXPECT_TRUE(mlir::succeeded(tensorflow::EraseClusterFuncs(cluster_func_ops)));
    
      llvm::SmallVector<mlir::tf_device::ClusterFuncOp, 4> new_cluster_func_ops;
      module->walk([&](mlir::tf_device::ClusterFuncOp cluster_func) {
        new_cluster_func_ops.push_back(cluster_func);
      });
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc

      }
      return v;
    }
    
    void AnnotateParameterReplicationPass::runOnOperation() {
      ModuleOp m = getOperation();
      OpBuilder builder(m.getContext());
      m.walk([&](tf_device::ClusterFuncOp cluster_func) {
        auto replicate = cluster_func->getParentOfType<tf_device::ReplicateOp>();
        if (!replicate) return;
        auto mirrored_variable_indices_attr =
            replicate->getAttrOfType<ArrayAttr>(kMirroredVariableIndicesAttr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.h

        mlir::OpBuilder* builder,
        llvm::SmallVectorImpl<llvm::SmallVector<mlir::Value, 4>>* input_list);
    
    // Extracts a list of OpSharding that represent output sharding configuration of
    // `tf_device.cluster`.
    mlir::LogicalResult ParseAndValidateOutputSharding(
        int num_cores_per_replica, mlir::tf_device::ClusterFuncOp cluster_func,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:18:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/tests/ifrt/rewrite_cluster_to_ifrt_call.mlir

    func.func @serving_default(%arg0: tensor<1x3xf32>) -> (tensor<1x3xf32>) {
      %outputs  =  "tf.TPUCompilationResult"() {_tpu_compilation_status = "cluster", device = ""} : () -> tensor<!tf_type.string>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 17 07:28:40 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_input_dialect_to_executor_pass_test.mlir

      func.return %arg0 : tensor<i32>
    }
    
    func.func @testClusterFuncOpFails(%arg0: tensor<i32>) -> tensor<i32> {
       // expected-error@below {{failed TF functional to executor validation, op tf_device.cluster_func is not allowed}}
      %cluster = "tf_device.cluster_func"(%arg0) {func = @_func} : (tensor<i32>) -> tensor<i32>
     func.return %cluster : tensor<i32>
    }
    
    // -----
    
    // CHECK-LABEL: func @testTFDialect
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 30 22:07:53 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.td

        Bubbles up sharding configuration from `cluster_func` regions into
        the attributes of `cluster_func`. This is done by parsing the
        `XlaSharding` / `TPUPartitionedOutput` / `TPUPartitionedInput` ops inside
        `cluster_func`.
    
        For example, given the following `cluster_func` wrapping `func`:
    
        ```mlir
          func @test(%arg0: tensor<*xi32>) {
            "tf_device.cluster_func"(%arg0) {
                func = @func,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

    }
    
    void TPUAnnotateDynamicShapeInputsPass::runOnOperation() {
      getOperation().walk([&](tf_device::ClusterFuncOp cluster_func_op) {
        Builder builder(cluster_func_op->getContext());
        // Skip non-tpu device cluster_func.
        auto cluster_id =
            cluster_func_op->getAttrOfType<StringAttr>(TF::kReplicationInfoAttr);
        if (!cluster_id) return WalkResult::advance();
    
        llvm::SmallVector<int, 4> dynamic_shape_arg_index;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top