Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 324 for outlining (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/launch_outlining.mlir

    // RUN: tf-opt %s -split-input-file -tf-device-launch-outlining | FileCheck %s
    
    // Tests simple case of a single `tf_device.launch`.
    
    // CHECK-LABEL: func @single_launch
    // CHECK-SAME: (%[[ARG_0:[a-z0-9]*]]: tensor<?xi32>)
    func.func @single_launch(%arg0: tensor<?xi32>) -> tensor<?xi32> {
      %0 = tf_executor.graph {
        %1:2 = tf_executor.island {
          // CHECK: %[[A_OUTPUT:[0-9]*]] = "tf.A"(%[[ARG_0]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/executor_tpuv1_outline_island/executor_tpuv1_outline_tpu_island.mlir

    // RUN: tf-opt %s -split-input-file -tf-executor-tpu-v1-island-outlining -split-input-file -verify-diagnostics | FileCheck %s
    
    // CHECK-LABEL: @func0
    func.func @func0(%arg0 : tensor<i1>) -> tensor<f32> {
      %0 = tf_executor.graph {
    // CHECK: island
    // CHECK: PartitionedCall
    // CHECK-SAME: @_tpu_v1_compat_outlined::@_tpu_v1_compat_outlined_func0
        %1:2 = tf_executor.island {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 04 03:54:58 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/cluster_outlining.mlir

    // RUN: tf-opt %s -split-input-file -tf-device-cluster-outlining | FileCheck %s
    
    // Tests simple case of a single `tf_device.cluster`.
    
    // CHECK-LABEL: func @single_cluster
    // CHECK-SAME: (%[[ARG_0:[a-z0-9]*]]: tensor<?xi32>)
    func.func @single_cluster(%arg0: tensor<?xi32>) -> tensor<?xi32> {
      %0 = tf_executor.graph {
        %1:2 = tf_executor.island {
          // CHECK: %[[A_OUTPUT:[0-9]*]] = "tf.A"(%[[ARG_0]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. src/encoding/json/fold.go

    	"unicode/utf8"
    )
    
    // foldName returns a folded string such that foldName(x) == foldName(y)
    // is identical to bytes.EqualFold(x, y).
    func foldName(in []byte) []byte {
    	// This is inlinable to take advantage of "function outlining".
    	var arr [32]byte // large enough for most JSON names
    	return appendFoldedName(arr[:0], in)
    }
    
    func appendFoldedName(out, in []byte) []byte {
    	for i := 0; i < len(in); {
    		// Handle single-byte ASCII.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 17:37:27 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/executor_tpuv1_outline_island/case_op.mlir

    // RUN: tf-opt %s -tf-executor-tpu-v1-island-outlining | FileCheck %s
    
    // CHECK: func @control_input
    // CHECK-NOT: func @
    // CHECK-LABEL: module @_tpu_v1_compat_outlined
    // CHECK: @_tpu_v1_compat_outlined_func0
    // CHECK: func @branch_0
    // CHECK: func @branch_1
    // CHECK: func @branch_2
    // CHECK: func @branch_3
    // CHECK: func @branch_4
    module {
      func.func @control_input(%arg0: tensor<i1>) -> tensor<i32> {
        %0 = tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 16:14:17 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/executor_tpuv1_outline_island/while_op.mlir

    // RUN: tf-opt %s -tf-executor-tpu-v1-island-outlining | FileCheck %s
    
    // CHECK: func @control_input
    // CHECK-NOT: func @
    // CHECK-LABEL: module @_tpu_v1_compat_outlined
    // CHECK: @_tpu_v1_compat_outlined_func0
    // CHECK: func @while_body_with_cluster_attr
    // CHECK: func @while_cond_with_cluster_attr
    // CHECK: func @while_body_without_cluster_attr
    // CHECK: func @while_cond_without_cluster_attr
    // CHECK: func @callee_func
    module {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 04 03:54:58 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

      }
      return true;
    }
    
    // Summary information for trivially transforming region based op's to
    // functional ops. A trivial transformation can be done when the regions are
    // just calls to functions, in which case no outlining is needed.
    struct TrivialTransformInfo {
      // Can the op be transformed trivially?
      bool can_transform = false;
    
      // List of callee names (one for each region).
      llvm::SmallVector<StringRef, 2> callee_names;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/tfl_while_outline.mlir

    // Test to verify loop outlining.
    
    // RUN: tf-opt --split-input-file --tfl-while-loop-outline %s | FileCheck %s
    // Check that while loop outlining is nop if re-ran.
    // RUN: tf-opt --tfl-while-loop-outline %s -o %t1
    // RUN: tf-opt --tfl-while-loop-outline %t1 -o %t2
    // RUN: diff %t1 %t2
    
    // CHECK-LABEL: func @while
    func.func @while() -> tensor<1xf32>
        attributes {tf.entry_function = {outputs = "result"}} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h

        "_xla_outside_compilation";
    // device attr
    inline constexpr llvm::StringRef kDeviceAttr = "device";
    // Function attribute to signal that a function should be skipped from TPU
    // island outlining. The attribute is set in
    // `TpuV1BridgeExecutorIslandCoarsening` and removed in the subsequent
    // `TPUBridgeExecutorIslandOutlining` pass.
    inline constexpr llvm::StringRef kSkipIslandOutlining =
        "_skip_island_outlining";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/passes.h

    // This is a V1 backward compatibility.
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateTFExecutorTPUV1IslandCoarseningPass();
    
    // Creates a pass to outlining TPU clusters from single IslandOp into a nested
    // module suitable for being processed as-if it was a V2 module.
    // This is a V1 backward compatibility.
    std::unique_ptr<OperationPass<ModuleOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 31.8K bytes
    - Viewed (0)
Back to top