Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 104 for lowerings (2.81 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

                              tensorflow::ConvertTensor(tensor, &builder));
          builder.setInsertionPoint(
              &func_op.getFunctionBody().getBlocks().front().front());
          // Use mhlo.Constant when it is consumed by the lowering passes since they
          // can't lower tf.Const.
          Value cst;
          if (use_mhlo_const) {
            cst = builder.create<mhlo::ConstantOp>(func_op->getLoc(), attrs);
          } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  2. test/fixedbugs/issue43099.go

    // license that can be found in the LICENSE file.
    
    // Check to make sure we don't try to constant fold a divide by zero.
    // This is a tricky test, as we need a value that's not recognized as 0
    // until lowering (otherwise it gets handled in a different path).
    
    package p
    
    func f() {
    	var i int
    	var s string
    	for i > 0 {
    		_ = s[0]
    		i++
    	}
    
    	var c chan int
    	c <- 1 % i
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 10 03:18:00 UTC 2020
    - 858 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/README.md

    # Target Aware Conversion (TAC)
    
    Different hardwares have different capabilities and restrictions.
    
    TAC is designed to leverage hardwares' capabilities to:
    
    *   Perform device-specific optimizations (such as unsupported ops lowering,
        layout transformations, etc.)
    *   Graph partitioning based on the hardware costs modeling.
    *   It supports general import/export where you can hook your own
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 29 18:32:13 UTC 2022
    - 11.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.h

    bool IsOpAllowedTf2xlaFallback(const TypeID& type_id);
    
    // Whether this type is Preferred to use a TF2XLA fallback kernel when using
    // the MLIR bridge. If this is true, then the TF2XLA fallback kernel will be
    // used over the MLIR lowering.
    bool IsOpAllowedTf2xlaPreferred(const TypeID& type_id);
    
    }  // namespace mhlo
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 20:53:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/config.go

    	Types          Types
    	lowerBlock     blockRewriter  // block lowering function, first round
    	lowerValue     valueRewriter  // value lowering function, first round
    	lateLowerBlock blockRewriter  // block lowering function that needs to be run after the first round; only used on some architectures
    	lateLowerValue valueRewriter  // value lowering function that needs to be run after the first round; only used on some architectures
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf_test_pass.cc

    // Lowers some of the TensorFlow operations that can be represented using other
    // TensorFlow operations.
    struct LowerTF : public impl::TestTensorFlowLowerTFPassBase<LowerTF> {
      void runOnOperation() override {
        // Add lowering patterns to the list.
        RewritePatternSet patterns(&getContext());
        if (default_patterns_) {
          mlir::TF::PopulateLoweringTFPatterns(&getContext(), &patterns);
        }
        if (pre_hlo_patterns_) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops_pass.cc

    struct DecomposeResourceOpsPass
        : public impl::DecomposeResourceOpsPassBase<DecomposeResourceOpsPass> {
      void runOnOperation() override {
        // Add lowering patterns to the list.
        RewritePatternSet patterns(&getContext());
        TF::PopulateDecomposeResourceOpsPatterns(&getContext(), &patterns);
    
        if (failed(applyPatternsAndFoldGreedily(getOperation(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:01:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/mlrt/tf_to_mlrt.mlir

      // CHECK: mlrt.await_handle [[handle_1]]
      mlrt.await_handle %handle_0
      mlrt.await_handle %handle_1
    
      // CHECK: return [[result]]
      return %result : tensor<i32>
    }
    
    // -----
    
    // Test lowering tf.If
    
    func.func @then(%x: tensor<i32>, %y: tensor<i32>) -> tensor<i32> {
      return %x: tensor<i32>
    }
    
    func.func @else(%x: tensor<i32>, %y: tensor<i32>) -> tensor<i32> {
      return %y: tensor<i32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/ir/Passes.h

    /// Creates a pass that converts constants followed by a qbarrier to a
    /// constant whose value is quantized. This is typically one of the last
    /// passes done when lowering to express actual quantized arithmetic in a
    /// low level representation. Because it modifies the constant, it is
    /// destructive and cannot be undone.
    std::unique_ptr<OperationPass<func::FuncOp>> createConvertConstPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 29 18:55:28 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/test_passes.h

    namespace mlir {
    namespace tf_test {
    
    // Returns test pass for variable freezing.
    std::unique_ptr<OperationPass<ModuleOp>> CreateFreezeVariableTestPass();
    
    // Test pass for applying TF->TF lowering patterns.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateTestTFLowerTFPass();
    
    // Test passes for visitor util.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateTestVisitorUtilPass();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 00:21:29 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top