Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getTraits (0.21 sec)

  1. tensorflow/compiler/mlir/lite/quantization/tools/op_quant_spec_getters_gen.cc

      OUT(2) << "}\n";
    
      OUT(2) << "auto spec = std::make_unique<quant::OpQuantSpec>();\n";
      llvm::SmallVector<llvm::StringRef, 3> matches;
      for (auto *def : defs) {
        Operator op(def);
        for (const auto t : op.getTraits()) {
          if (auto opTrait = llvm::dyn_cast<mlir::tblgen::NativeTrait>(&t)) {
            auto trait_str = opTrait->getFullyQualifiedTraitName();
            if (!llvm::StringRef{trait_str}.consume_front(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 11:18:44 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/converter_gen.cc

                                 "operand");
        GenOperandResultVerifier(os, def->getValueAsDag("results")->getArgs(),
                                 "result");
    
        for (auto &trait : op.getTraits()) {
          if (!trait.getDef().isSubClassOf("GenInternalOpTrait")) {
            continue;
          }
          if (trait.getDef().getValueAsString("trait") !=
              "::mlir::OpTrait::TFLRuntimeOpTrait") {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/tools/tflite_op_coverage_spec_getters_gen.cc

      os.indent(4) << "new std::set<std::string>({\n";
    
      // Retrieve all the ops that have DynamicRangeQuantizedOpInterface trait.
      for (const auto *def : defs) {
        Operator op(def);
        if (!op.getTrait("DynamicRangeQuantizedOpInterface::Trait")) continue;
    
        auto op_name = op.getCppClassName();
        auto op_extra_declaration = op.getExtraClassDeclaration().str();
    
        bool kernel_support = absl::StrContains(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 12.7K bytes
    - Viewed (0)
Back to top