Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 47 for cluster_func (0.18 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tensorflow/utils/parallel_execute_util.h

    //   RemoveSingletonParallelExecuteOp can be removed.
    
    // Wrap `cluster_func` in a `ParallelExecute` with only one child. This
    // can be used to canonicalize IR, so there is always one `ParallelExecute`.
    tf_device::ParallelExecuteOp BuildParallelExecuteOp(
        tf_device::ClusterFuncOp cluster_func, OpBuilder* builder);
    
    // Unwrap `parallel_execute`'s contents if it only has one child.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 13 03:57:18 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/tests/runtime_lowering_tpu.mlir

      // CHECK-LABEL: @converts_cluster
      func.func @converts_cluster() {
        // CHECK: %0:2 = "tf_device.launch"() <{{.*}}> ({
        // CHECK: %compilation_status, %program = "tf._TPUCompileMlir"()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/annotate-parameter-replication.mlir

        %5:2 = tf_device.replicate([%0, %arg0] as %ri_0: tensor<?xi32>) {n = 2 : i32} {
          %2 = "tf._F"(%arg0) : (tensor<?xi32>) -> tensor<?xi32>
          %3 = "tf.Identity"(%1) : (tensor<?xi32>) -> tensor<?xi32>
          %4 = "tf_device.cluster_func"(%ri_0, %3, %2) {func = @_func, device = ""} : (tensor<?xi32>, tensor<?xi32>, tensor<?xi32>) -> tensor<?xi32>
          tf_device.return %4 : tensor<?xi32>
        }
        %6 = "tf._C"(%5#1) : (tensor<?xi32>) -> tensor<?xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jul 25 02:54:34 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_input_dialect_to_executor_pass.cc

              VerifyInputDialectToExecutorPass> {
     public:
      void runOnOperation() override;
    };
    
    bool IsTfDeviceClusterFuncOp(Operation* op) {
      std::string kClusterFuncOpName = "tf_device.cluster_func";
      return op->getName().getStringRef().str() == kClusterFuncOpName;
    }
    
    void VerifyInputDialectToExecutorPass::runOnOperation() {
      Operation* func_op = getOperation();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 08 16:32:56 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/testdata/malformed_cluster.mlir

      func.func @missing_num_cores_per_replica() {
        // expected-error@+1 {{requires attribute 'num_cores_per_replica'}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 17 16:43:16 UTC 2023
    - 742 bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util.cc

    }
    
    int MovePreservedParallelExecuteChildren(
        int num_cores_per_replica,
        llvm::SmallVector<mlir::Type, 8>& concatenated_output_types,
        mlir::OpBuilder* builder, mlir::tf_device::ClusterFuncOp cluster_func,
        mlir::tf_device::ParallelExecuteOp old_parallel_execute,
        mlir::tf_device::ParallelExecuteOp* new_parallel_execute) {
      // `num_moved_children` is the number of children that will be preserved.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 13 03:57:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/testdata/basic_cluster.mlir

      func.func @main() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 17 16:43:16 UTC 2023
    - 639 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/testdata/spmd.mlir

      func.func @main(%arg0: tensor<*xf32> {tf.device = "/job:localhost/replica:0/task:0/device:CPU:0"}) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 12 04:22:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top