Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for outlining (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

        TPU-annotated operations and intended to preserve backward compatibility with
        TFv1.
      }];
    }
    
    def TPUBridgeExecutorIslandOutliningPass : Pass<"tf-executor-tpu-v1-island-outlining", "ModuleOp"> {
      let summary = "Outline TPU clusters from island into a nested module, so it can "
               "be processed like a V2 module, intended for V1 compatibility mode";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

      for (func::FuncOp func_op : getOperation().getOps<func::FuncOp>()) {
        if (functions_to_skip.contains(func_op)) {
          OpBuilder builder(func_op);
          // Mark this function as being skipped in island outlining.
          func_op->setAttr(mlir::TF::kSkipIslandOutlining,
                           builder.getBoolAttr(true));
          continue;
        }
    
        func_op.walk([&](GraphOp graph) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  8. src/time/time.go

    // that the leading digit is non-zero. The zero duration formats as 0s.
    func (d Duration) String() string {
    	// This is inlinable to take advantage of "function outlining".
    	// Thus, the caller can decide whether a string must be heap allocated.
    	var arr [32]byte
    	n := d.format(&arr)
    	return string(arr[n:])
    }
    
    // format formats the representation of d into the end of buf and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  9. src/reflect/value.go

    //	for iter.Next() {
    //		k := iter.Key()
    //		v := iter.Value()
    //		...
    //	}
    func (v Value) MapRange() *MapIter {
    	// This is inlinable to take advantage of "function outlining".
    	// The allocation of MapIter can be stack allocated if the caller
    	// does not allow it to escape.
    	// See https://blog.filippo.io/efficient-go-apis-with-the-inliner/
    	if v.kind() != Map {
    		v.panicNotMap()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  10. apache-maven/src/main/appended-resources/licenses/MIT.txt

     Copyright <YEAR> <COPYRIGHT HOLDER>
    
     Permission is hereby granted, free  of charge, to any person obtaining
     a  copy  of this  software  and  associated  documentation files  (the
     "Software"), to  deal in  the Software without  restriction, including
     without limitation  the rights to  use, copy, modify,  merge, publish,
     distribute,  sublicense, and/or sell  copies of  the Software,  and to
     permit persons to whom the Software  is furnished to do so, subject to
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri May 17 19:14:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top