Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for parseKeyword (0.27 sec)

  1. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc

        return mlir::failure();
    
      if (options.has_key &&
          (parser.parseKeyword("key") || parser.parseLParen() ||
           parser.parseAttribute(op_key, "op_key", result.attributes) ||
           parser.parseRParen()))
        return mlir::failure();
    
      if (options.has_cost &&
          (parser.parseKeyword("cost") || parser.parseLParen() ||
           parser.parseAttribute(cost, "_tfrt_cost", result.attributes) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cc

          >();
    }
    
    /// Parse a type registered to this dialect.
    Type FallbackDialect::parseType(DialectAsmParser &parser) const {
      StringRef keyword;
      if (parser.parseKeyword(&keyword)) return Type();
    
      if (keyword == "tf_tensor") return TFTensorType::get(getContext());
      if (keyword == "tf_allocator") return TFAllocatorType::get(getContext());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.cc

          >();
    }
    
    // Parse a type registered to this dialect.
    mlir::Type MlrtDialect::parseType(mlir::DialectAsmParser &parser) const {
      llvm::StringRef keyword;
      if (parser.parseKeyword(&keyword)) return mlir::Type();
    
      if (keyword == "future") return FutureType::get(getContext());
      if (keyword == "promise") return PromiseType::get(getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.cc

          >();
    }
    
    // Parse a type registered to this dialect.
    mlir::Type TensorflowMlrtDialect::parseType(
        mlir::DialectAsmParser &parser) const {
      llvm::StringRef keyword;
      if (parser.parseKeyword(&keyword)) return mlir::Type();
    
      if (keyword == "tensor") return TFTensorType::get(getContext());
    
      parser.emitError(parser.getNameLoc(), "unknown type: ") << keyword;
      return mlir::Type();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

      addTypes<ControlType, TokenType>();
    }
    
    Type TensorFlowExecutorDialect::parseType(DialectAsmParser &parser) const {
      StringRef data_type;
      if (parser.parseKeyword(&data_type)) return Type();
    
      if (data_type == "control") return ControlType::get(getContext());
      if (data_type == "token") return TokenType::get(getContext());
      parser.emitError(parser.getNameLoc())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.cc

              parser, builder, result, builder.getType<fallback::TFTensorType>(),
              parse_options)))
        return mlir::failure();
    
      mlir::IntegerAttr num_args;
      if (parser.parseKeyword("num_args") || parser.parseLParen() ||
          parser.parseAttribute(num_args, "num_args", result.attributes) ||
          parser.parseRParen())
        return mlir::failure();
    
      return mlir::success();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      do {
        OpAsmParser::UnresolvedOperand operand_type;
        if (parser->parseOptionalOperand(operand_type).has_value()) {
          packed_inputs->emplace_back(operand_type);
          if (parser->parseKeyword("as",
                                   " between packed input and block argument") ||
              parser->parseOperand(packed_region_args.emplace_back(),
                                   /*allowResultNumber=*/false) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

      StringRef typeNameSpelling;
      if (failed(parser.parseKeyword(&typeNameSpelling))) return {};
      llvm::SmallVector<StringAttr, 4> attrs;
      if (succeeded(parser.parseOptionalLess())) {
        bool l_square_parsed = false;
        if (succeeded(parser.parseOptionalLSquare())) {
          l_square_parsed = true;
        }
    
        do {
          StringRef attr;
          if (failed(parser.parseKeyword(&attr))) return {};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

        os << "control";
        return;
      }
      os << "<unknown TFL type>";
    }
    
    Type TFLDialect::parseType(DialectAsmParser& parser) const {
      StringRef data_type;
      if (parser.parseKeyword(&data_type)) return Type();
      if (data_type == "control") return ControlType::get(getContext());
      parser.emitError(parser.getNameLoc()) << "unknown TFL type: " << data_type;
      return nullptr;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top