Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for _xla_outside_compilation (0.41 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h"
    
    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    // This pass extracts a CPU computation cluster with `_xla_outside_compilation`
    // annotation from the head or tail of a TPU cluster.
    
    namespace {
    
    using mlir::Block;
    using mlir::BlockArgument;
    using mlir::BoolAttr;
    using mlir::ModuleOp;
    using mlir::OpBuilder;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/prepare_tpu_computation_for_tf_export.mlir

      func.return %0#0 : tensor<*xf32>...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 18:46:36 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/compilability_check_util_test.cc

      auto opts = builder.opts();
      Node* const0 = ops::SourceOp("InputFloatOp", opts);
      Node* uncompilable_op = ops::UnaryOp("MissingKernel", const0, opts);
      uncompilable_op->AddAttr("_xla_outside_compilation", "0");
      GraphDef graph_def;
      TF_EXPECT_OK(builder.ToGraphDef(&graph_def));
    
      auto* flib_runtime = GetFunctionLibraryRuntime();
    
      // Outside compiled ops are considered by default..
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 22.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

        }
      });
    
      for (auto parallel_execute_op : tmp_parallel_execute_ops) {
        parallel_execute_op.erase();
      }
      // Remove `_xla_outside_compilation` attribute from all ops.  These ops will
      // be outside of the device cluster. The `_xla_outside_compilation` attribute
      // on ops outside of tf_device.cluster don't have any meaning and can lead to
      // errors later on.  These ops were likely lifted out of the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir

        // CHECK: %2 = "tf.Reshape"(%1#0, %cst) {_xla_outside_compilation = "0"} : (tensor<3360x8xi32>, tensor<3xi32>) -> tensor<3x1120x8xi32>
        // CHECK: %3:3 = "tf.Split"(%cst_0, %2) {_xla_outside_compilation = "0"} : (tensor<i32>, tensor<3x1120x8xi32>) -> (tensor<1x1120x8xi32>, tensor<1x1120x8xi32>, tensor<1x1120x8xi32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 17:24:10 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/decompose_resource_ops.mlir

        // CHECK: [[GATHER:%.+]] = "tf.GatherV2"([[READVAR]], [[INDEX]], [[ZERO]]) <{batch_dims = 0 : i64}> {_xla_outside_compilation = "0"} : (tensor<*xi32>, tensor<?xi32>, tensor<i64>) -> tensor<*xi32>
        // CHECK: return [[GATHER]]
        %1 = "tf.ResourceGather"(%resource, %indices) {_xla_outside_compilation = "0"} : (tensor<*x!tf_type.resource<tensor<*xi32>>>, tensor<?xi32>) -> (tensor<*xi32>)
        tf_device.return %1 : tensor<*xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/passes.h

    // attribute on the `tf_device.launch`.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateLaunchToDeviceAttributePass(
        bool legacy_graph_export = true);
    
    // Creates a pass to ensure that the `_xla_outside_compilation` and
    // tf_device.launch op no longer exist after Outside Compilation is complete.
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateVerifyNoOutsideCompilationMarkersPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      "tf._XlaHostComputeMlir"(%arg0) {send_key="", recv_key="", host_mlir_module="module  {\0A  func.func @host_func(%arg0: tensor<*xf32>) -> tensor<*xf32> {\0A    %0 = \22tf.Identity\22(%arg0) {_xla_outside_compilation = \22cluster1\22} : (tensor<*xf32>) -> tensor<*xf32> \0A    func.return %0 : tensor<*xf32> \0A  } \0A} \0A"} : (tensor<2xf32>) -> (tensor<2xf32>)
      func.return
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      %0 = "tf.Pack"(%arg0) {axis = 0 : i64, _xla_outside_compilation = "1", device = "/job:localhost/replica:0/task:0/device:GPU:0"} : (tensor<2x3xf32>) -> tensor<1x2x3xf32>
      func.return %0 : tensor<1x2x3xf32>
      // CHECK: %[[SHAPE:.*]] = "tf.Const"() <{value = dense<[1, 2, 3]> : tensor<3xi32>}> : () -> tensor<3xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

      for (Node* n : g.op_nodes()) {
        bool is_lifted_arg;
        string outside_compilation_attr;
        if (TryGetNodeAttr(n->def(), kXlaIsLiftedArgAttrName, &is_lifted_arg) &&
            TryGetNodeAttr(n->def(), "_xla_outside_compilation",
                           &outside_compilation_attr)) {
          TF_RET_CHECK(is_lifted_arg);
          TF_RET_CHECK(n->IsIdentity() || n->type_string() == "Placeholder");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
Back to top