Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for StringRef (0.25 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration.cc

    static constexpr char kArbitraryDeviceName[] = "XLA_CPU_JIT";
    
    namespace {
    inline absl::string_view StringRefToView(llvm::StringRef ref) {
      return {ref.data(), ref.size()};
    }
    }  // namespace
    
    static OwningOpRef<mlir::ModuleOp> GraphdefToMlirTranslateFunction(
        llvm::StringRef input, MLIRContext* context) {
      tensorflow::GraphdefToMlirOptions options{
          debug_info_file,        xla_compile_device_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/lite/quantize_model.cc

    #include <optional>
    #include <string>
    #include <unordered_set>
    
    #include "absl/container/flat_hash_set.h"
    #include "absl/log/log.h"
    #include "absl/strings/string_view.h"
    #include "llvm/ADT/StringRef.h"
    #include "llvm/ADT/Twine.h"
    #include "llvm/Support/Debug.h"
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/Location.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc

      explicit GraphOptByNamePass(const std::vector<std::string>& pass_names)
          : GraphOptPass(FindRegisteredPassesByName(pass_names)) {}
    
      llvm::StringRef getArgument() const final {
        return "run-tf-graph-optimization";
      }
    
      llvm::StringRef getDescription() const final {
        return "runs passes registered as tensorflow::GraphOptimizationPass";
      }
    
     private:
      void runOnOperation() override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.h

    #define TENSORFLOW_COMPILER_MLIR_TENSORFLOW_TRANSLATE_EXPORT_GRAPHDEF_H_
    
    #include "absl/base/attributes.h"
    #include "absl/container/flat_hash_set.h"
    #include "llvm/ADT/StringRef.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/MLIRContext.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.h

    #ifndef TENSORFLOW_COMPILER_MLIR_TF2XLA_API_V2_TF_EXECUTOR_TO_GRAPH_H_
    #define TENSORFLOW_COMPILER_MLIR_TF2XLA_API_V2_TF_EXECUTOR_TO_GRAPH_H_
    
    #include "absl/container/flat_hash_set.h"
    #include "llvm/ADT/StringRef.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/MLIRContext.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc

        return std::nullopt;
    
      if (!HasValidHardwareTarget(op)) return std::nullopt;
    
      auto device = op->getAttrOfType<mlir::StringAttr>(mlir::TFL::tac::kDevice);
      if (device == nullptr) return std::nullopt;
    
      llvm::StringRef device_name_str = device.getValue();
      return device_name_str.str();
    }
    
    std::optional<std::vector<float>> GetPerDeviceCosts(
        const std::map<std::string, uint8_t>& hardware_map, mlir::Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top