Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 47 for cluster_func (0.15 sec)

  1. tensorflow/compiler/mlir/tfrt/tests/runtime_lowering_gpu.mlir

      // CHECK-LABEL: @converts_cluster
      func.func @converts_cluster() {
        // CHECK: "tf.XlaLaunch"()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 13 17:41:44 UTC 2023
    - 840 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/mlir_to_graph_passes.td

      let description = [{
        Verifies the input before exporting to TF executor. This includes checking whether the Ops are in TF functional, have device attributes & there are no tf_device.cluster_func ops.
      }];
      let constructor = "tensorflow::tf2xla::internal::CreateVerifyInputDialectToExecutorPass()";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 08 16:32:56 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util.h

    // children except for the child with the ClusterFunc.
    // Returns the index of the child with the ClusterFunc.
    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,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

    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: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor.h

    // exportable and verify some properties of the Tensorflow Executor MLIR that
    // are required by Graph Export. It will return an error if it cannot.
    //
    // Input: A MLIR Module in the Tensorflow Dialect with no
    // `tf_device.cluster_func` ops.
    // Output: A MLIR module in the Tensorflow Executor Dialect.
    tensorflow::Status ExportFromTensorflowDialectToExecutor(
        mlir::ModuleOp module, llvm::StringRef module_name = llvm::StringRef());
    
    }  // namespace v2
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 03 23:19:33 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tpu-annotate-dynamic-shape-inputs.mlir

                tf_device.return %4#0, %4#1 : tensor<2048xi32>, tensor<2048xi32>
                }) {device = "TPU_REPLICATED_HOST_0"} : () -> (tensor<2048xi32>, tensor<2048xi32>)
          %1 = "tf_device.cluster_func"(%0#0, %0#1) {_replication_info = "cluster_test_fn", func = @tpu_func} : (tensor<2048xi32>, tensor<2048xi32>) -> tensor<2048xi32>
          return %1: tensor<2048xi32>
       }
       // CHECK-LABEL: func @tpu_func
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 14 15:35:49 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v1/tf_dialect_to_executor.h

    // exportable and verify some properties of the Tensorflow Executor MLIR that
    // are required by Graph Export. It will return an error if it cannot.
    //
    // Input: A MLIR Module in the Tensorflow Dialect with no
    // `tf_device.cluster_func` ops.
    // Output: A MLIR module in the Tensorflow Executor Dialect.
    
    ABSL_DEPRECATED(
        "Use v2/tf_dialect_to_executor.h::ExportFromTensorflowDialectToExecutor "
        "instead.")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 11 18:45:46 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td

      }];
    
      let hasCanonicalizer = 1;
    }
    
    def TfDevice_ClusterFuncOp : TfDevice_Op<"cluster_func",
        [CallOpInterface, DeclareOpInterfaceMethods<SymbolUserOpInterface>]> {
      let summary = [{
    The `tf_device.cluster_func` launches a function containing the body of a
    cluster.
      }];
    
      let description = [{
    This op is used for outlining a cluster.
      }];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc

      ReplaceClusterReturnWithReturn(return_op, builder);
    
      symbol_table->insert(outlined_func);
      return outlined_func;
    }
    
    // Outlines body of `tf_device.cluster` into a function and create a
    // `tf_device.cluster_func` to invoke that function. `tf_device.cluster` is
    // removed afterwards.`
    void OutlineCluster(tf_device::ClusterOp cluster_op, SymbolTable* symbol_table,
                        OpBuilder* builder) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top