Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,272 for pattern1 (0.2 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

      if (quant_specs_.weight_quantization) {
        patterns.add<TFDynamicRangeQuantization>(ctx, quant_params);
      } else {
        patterns.add<TFFullQuantization, TFFullQuantizationReverse>(ctx,
                                                                    quant_params);
        patterns.add<QuantizeSameScaleOpsPattern>(ctx, GetTfQuantScaleSpec,
                                                  target_opset_);
        patterns.add<QuantizeAvgPoolOpPattern>(ctx);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc

    };
    
    // Adds any canonicalization patterns to list of supported `patterns`.
    // TODO(b/161726307): Move or import the relevant patterns to LowerTF pass and
    // remove this.
    void AddCanonicalizationPatterns(MLIRContext* context,
                                     RewritePatternSet* patterns) {
      for (auto op : context->getRegisteredOperations())
        op.getCanonicalizationPatterns(*patterns, context);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  3. src/embed/embed.go

    //
    // The //go:embed directive accepts multiple space-separated patterns for
    // brevity, but it can also be repeated, to avoid very long lines when there are
    // many patterns. The patterns are interpreted relative to the package directory
    // containing the source file. The path separator is a forward slash, even on
    // Windows systems. Patterns may not contain ‘.’ or ‘..’ or empty path elements,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla_passes.h

    template <typename T>
    class OperationPass;
    class Pass;
    
    namespace mhlo {
    
    /// Converter to be used along with the fallback Tf2Xla patterns below.
    class Tf2XlaTypeConverter : public TypeConverter {
     public:
      Tf2XlaTypeConverter();
    };
    
    /// Adds the TF to XLA via TF2XLA rewrite patterns to the pattern list.
    /// `prefer_tf2xla` means an op will be included iff it is not in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/quantize.cc

          quant_specs};
    
      populateWithGenerated(patterns);
    
      if (quant_specs.weight_quantization || quant_specs.use_fake_quant_num_bits ||
          quant_specs.qdq_conversion_mode ==
              quant::QDQConversionMode::kQDQDynamic) {
        patterns.add<TFLDynamicRangeQuantization>(ctx, quant_params);
      } else {
        patterns.add<TFLFullQuantization, TFLFullQuantizationReverse>(ctx,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      target.addLegalDialect<vhlo::VhloDialect>();
    
      StablehloToOdmlTypeConverter converter;
      RewritePatternSet patterns(context);
      stablehlo::populateStablehloToVhloPatterns(&patterns, &converter, context);
    
      if (failed(applyPartialConversion(module, target, std::move(patterns)))) {
        return module->emitError("Failed partial conversion to VHLO");
      }
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/tasks/AbstractCopyTask.java

        public AbstractCopyTask filesMatching(String pattern, Action<? super FileCopyDetails> action) {
            getMainSpec().filesMatching(pattern, action);
            return this;
        }
    
        /**
         * {@inheritDoc}
         */
        @Override
        public AbstractCopyTask filesMatching(Iterable<String> patterns, Action<? super FileCopyDetails> action) {
            getMainSpec().filesMatching(patterns, action);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

    void AddQuantizationUnitLocPass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      RewritePatternSet patterns(ctx);
      func::FuncOp func = getOperation();
    
      patterns.add<AddQuantizationUnitLoc>(ctx);
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        func.emitError() << "quant-add-quantization-unit-loc pattern "
                            "conversion did not converge.";
        signalPassFailure();
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

      }
    
      RewritePatternSet patterns(&getContext());
      auto func = getOperation();
      auto* ctx = func.getContext();
      TFL::populateWithGenerated(patterns);
      patterns.add<quant::FoldTrivalRequantizeOp<QuantizeOp>>(ctx);
      patterns.add<PruneUnusedOpsWithSideEffect<TFL::LSTMOp>>(ctx);
      patterns.add<PruneUnusedOpsWithSideEffect<TFL::UnidirectionalSequenceLSTMOp>>(
          ctx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

    void ConvertTFQuantTypes::runOnOperation() {
      TFQuantTypeConverter converter;
      RewritePatternSet patterns(&getContext());
      patterns.add<TFQuantTypePattern>(&getContext(), converter);
      patterns.add<TFConstOpQuantToIntPattern, TFUniformQuantizedOpsPattern>(
          &getContext());
      populateFunctionOpInterfaceTypeConversionPattern<func::FuncOp>(patterns,
                                                                     converter);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top