Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 244 for StringRef (0.16 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc

        mlir::stablehlo::registerAllDialects(registry);
        registry.insert<mlir::func::FuncDialect, mlir::arith::ArithDialect>();
        registry.insert<shape::ShapeDialect>();
      }
    
     public:
      StringRef getArgument() const final { return "tf-mhlo"; }
      StringRef getDescription() const final {
        return "This pass will legalize TF Ops to MHLO Ops.";
      }
    
     protected:
      Option<bool> skip_quantization_ops_{
          *this, "skip-quantization-ops",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/device_util.h"
    
    #include <string>
    
    #include "absl/strings/string_view.h"
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/ADT/StringRef.h"
    #include "llvm/Support/Error.h"
    #include "llvm/Support/FormatVariadic.h"
    #include "llvm/Support/Regex.h"
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    #include "mlir/IR/Builders.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights.cc

    namespace mlir {
    namespace lite {
    
    namespace {
    
    using llvm::StringRef;
    
    // Convert op represented in TFLite builtin_code to its corresponding MLIR
    // OperationName.
    void TfLiteBuiltinOpToMlir(const BuiltinOperatorSet& tflite_builtin_codes,
                               absl::flat_hash_set<std::string>& mlir_op_names) {
      for (const auto& entry : tflite_builtin_codes) {
        StringRef tflite_op_name = EnumNameBuiltinOperator(entry);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/lite/tfl_quantizer.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    #include <iostream>
    
    #include "llvm/ADT/StringRef.h"
    #include "llvm/Support/CommandLine.h"
    #include "llvm/Support/InitLLVM.h"
    #include "llvm/Support/MemoryBuffer.h"
    #include "llvm/Support/PrettyStackTrace.h"
    #include "llvm/Support/raw_ostream.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/passes.h

        StringRef serialized_stablehlo_module);
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateLiftQuantizableSpotsAsFunctionsPass(
        const ::stablehlo::quantization::QuantizationSpecs& quantization_specs);
    
    // Creates a pass that inserts CalibrationStatisticsSaverOp.
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateInsertCalibrationStatisticsSaverPass(
        StringRef calibration_data_dir,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/common/targets.h

    #include <algorithm>
    #include <cctype>
    #include <functional>
    #include <optional>
    #include <string>
    #include <vector>
    
    #include "llvm/ADT/ArrayRef.h"
    #include "llvm/ADT/StringRef.h"
    #include "mlir/IR/Operation.h"  // from @llvm-project
    
    namespace mlir {
    namespace TFL {
    namespace tac {
    
    // Device attribute string on the TFL dialect.
    constexpr char kDevice[] = "tac.device";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/tools/op_quant_spec_getters_gen.cc

      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(
                    "::mlir::OpTrait::quant::"))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 11:18:44 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/localize_var_handles.cc

        // the initial state.
        return;
      }
      auto ops = state->getValue().ops;
      if (ops.size() != 1) {
        return;
      }
      Operation* source = *ops.begin();
      llvm::StringRef container;
      llvm::StringRef shared_name;
      if (auto global = llvm::dyn_cast<tf_saved_model::GlobalTensorOp>(source)) {
        container = "";
        shared_name = global.getSymName();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc

        min_num_elements_for_weights_ = other.min_num_elements_for_weights_;
      }
    
      StringRef getArgument() const final {
        // This is the argument used to refer to the pass in
        // the textual format (on the commandline for example).
        return "quant-lift-quantizable-spots-as-functions-drq";
      }
    
      StringRef getDescription() const final {
        // This is a brief description of the pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.cc

     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(OptimizePass)
    
      StringRef getArgument() const final {
        // This is the argument used to refer to the pass in
        // the textual format (on the commandline for example).
        return "quant-optimize";
      }
      StringRef getDescription() const final {
        // This is a brief description of the pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top