Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 150 for foldR (0.05 sec)

  1. src/encoding/json/fold.go

    		}
    		// Handle multi-byte Unicode.
    		r, n := utf8.DecodeRune(in[i:])
    		out = utf8.AppendRune(out, foldRune(r))
    		i += n
    	}
    	return out
    }
    
    // foldRune is returns the smallest rune for all runes in the same fold set.
    func foldRune(r rune) rune {
    	for {
    		r2 := unicode.SimpleFold(r)
    		if r2 <= r {
    			return r2
    		}
    		r = r2
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 17:37:27 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/tests/fold-constants-to-subgraph.mlir

    // Test for partial folding: only fold i32 constants.
    // RUN: tac-opt-all-backends -tfl-fold-constants-to-subgraph='fold-all-constants=false' %s -split-input-file -verify-diagnostics | FileCheck --check-prefix=PARTIAL %s
    
    // Test for fold all constants.
    // RUN: tac-opt-all-backends -tfl-fold-constants-to-subgraph='fold-all-constants=true' %s -split-input-file -verify-diagnostics | FileCheck --check-prefix=ALL %s
    
    module {
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/fold-broadcast.mlir

    // RUN: tf-opt -tf-broadcast-fold %s | FileCheck %s
    
    // CHECK-LABEL: @broadcast_mul0
    func.func @broadcast_mul0(%arg0: tensor<5x7xf32>, %arg1: tensor<7xf32>) -> tensor<5x7xf32> {
      %cst = arith.constant dense<[5, 7]> : tensor<2xi32>
      %0 = "tf.BroadcastTo"(%arg1, %cst) : (tensor<7xf32>, tensor<2xi32>) -> tensor<5x7xf32>
      %1 = "tf.Mul"(%arg0, %0) : (tensor<5x7xf32>, tensor<5x7xf32>) -> tensor<5x7xf32>
      func.return %1 : tensor<5x7xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/constant-fold.mlir

      // CHECK: %[[RESULT:.*]] = "tf.Mul"(%arg0, %[[CONST]]) : (tensor<1x6x8x1xf32>, tensor<f32>) -> tensor<1x6x8x1xf32>
      // CHECK: return %[[RESULT]] : tensor<1x6x8x1xf32>
    }
    
    // Do not fold if the op doesn't follow the constant folding policy. It doesn't
    // fold if the  total result size is large (>1 MB) and more than 2 times the
    // size of operands.
    
    // CHECK-LABEL: DontFoldTile
    func.func @DontFoldTile() -> (tensor<64x10000xi32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 31 23:22:24 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    // This pass folds the tf.Identity op if the operation has the same device as
    // its operand.
    
    #include "mlir/Dialect/Func/IR/FuncOps.h"
    #include "mlir/Pass/PassManager.h"
    #include "mlir/Transforms/DialectConversion.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/cases/fold.go

    Jonathan Amsterdam <******@****.***> 1700059801 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 935 bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

    }
    
    class FoldBroadcastPass
        : public PassWrapper<FoldBroadcastPass, OperationPass<func::FuncOp>> {
     public:
      StringRef getArgument() const final { return "constant-fold-broadcast-pass"; }
      StringRef getDescription() const final {
        return "Constant folds BroadcastInDimOp before binary elementwise ops";
      }
      void getDependentDialects(::mlir::DialectRegistry &registry) const override {}
    
      void runOnOperation() override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/const-fold.mlir

    Christian Sigg <******@****.***> 1714640622 -0700
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 45.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/passes.td

      ];
    }
    
    def FoldConstantTransposePass : Pass<"stablehlo-fold-constant-transpose", "mlir::func::FuncOp"> {
      let summary = "Folds stablehlo.constant -> stablehlo.transpose patterns.";
      let description = [{
        Finds patterns where a `stablehlo.constant` is directly followed by a
        `stablehlo.transpose` and folds them into a single `stablehlo.constant`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc

     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(FoldConstantsToSubgraphPass)
    
      llvm::StringRef getArgument() const final {
        return "tfl-fold-constants-to-subgraph";
      }
      llvm::StringRef getDescription() const final {
        return "Fold constants into each subgraph.";
      }
      FoldConstantsToSubgraphPass() = default;
      FoldConstantsToSubgraphPass(const FoldConstantsToSubgraphPass& other) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top