Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 304 for ModuleOp (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/translate_utils.h

    // graph VersionDef proto.
    void PopulateTfVersions(mlir::ModuleOp module, const VersionDef& versions);
    
    // Extracts TensorFlow GraphDef version information from the given module.
    // Returns failure if version attribute is missing or any of the sub attributes
    // are invalid.
    mlir::LogicalResult ExtractTfVersions(mlir::ModuleOp module,
                                          VersionDef* versions);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/logging_hooks_test.cc

        mlir_module_ =
            mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_);
        if (!mlir_module_) {
          return absl::Status(
              absl::StatusCode::kNotFound,
              absl::StrCat("Could not find MLIR module at ", mlir_module_path));
        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
      OwningOpRef<mlir::ModuleOp> mlir_module_;
      Env* env_;
      std::string test_dir_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/python/jax_to_tfl_flatbuffer.cc

    }
    
    mlir::OwningOpRef<mlir::ModuleOp> HloToMlirHloTranslateFunction(
        mlir::StringRef input, mlir::MLIRContext* context,
        bool import_all_computations) {
      xla::HloProto hlo_proto;
      std::string content(input.data(), input.size());
      if (!LoadHloProto(content, &hlo_proto)) {
        LOG(ERROR) << "Failed to load proto";
        return nullptr;
      }
    
      mlir::OwningOpRef<mlir::ModuleOp> module =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc

        if (resource_analyzer.IsPotentiallyWritten(arg)) {
          return false;
        }
      }
      return true;
    }
    
    GlobalTensorUsesMap CreateGlobalTensorUsesMap(ModuleOp module) {
      GlobalTensorUsesMap global_tensor_uses;
    
      SymbolTable symbol_table(module);
      for (auto func : module.getOps<func::FuncOp>()) {
        for (size_t i = 0, e = func.getNumArguments(); i < e; i++) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc

    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/protobuf.h"
    #include "tensorflow/core/util/tensor_bundle/byte_swap_tensor.h"
    
    namespace tensorflow {
    
    static absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> GraphdefToMlirImport(
        llvm::StringRef input, const std::vector<std::string>& input_arrays,
        const std::vector<std::string>& input_dtypes,
        const std::vector<std::optional<std::vector<int>>>& input_shapes,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 11:51:44 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/passes.td

    // Passes only used for testing purposes.
    
    include "mlir/Pass/PassBase.td"
    
    def TestPreCalibrationComponentPass : Pass<"stablehlo-test-pre-calibration-component", "mlir::ModuleOp"> {
      let summary = "Test-only pass to test the PreCalibrationComponent.";
      let description = [{
        Runs the pre calibration passes for post-training quantization with default
        configuration.
      }];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 23:21:42 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_test.cc

    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    namespace {
    
    using ::mlir::MLIRContext;
    using ::mlir::ModuleOp;
    using ::mlir::OwningOpRef;
    using ::mlir::PassManager;
    using ::tensorflow::monitoring::testing::CellReader;
    
    absl::StatusOr<OwningOpRef<ModuleOp>> GetMlirModuleFromString(
        absl::string_view module_string, MLIRContext* context) {
      mlir::DialectRegistry mlir_registry;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration.h

      // debugging purposes.
      static constexpr absl::string_view kName = "quant_ptq_pre_calibration";
    
      explicit PreCalibrationComponent(absl::Nonnull<MLIRContext*> ctx);
    
      absl::StatusOr<ModuleOp> Run(
          ModuleOp,
          const ::stablehlo::quantization::QuantizationConfig& config) override;
    
     private:
      absl::Nonnull<MLIRContext*> ctx_;
    };
    
    }  // namespace mlir::quant::stablehlo
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/utils/utils.cc

        mlir::func::registerAllExtensions(registry);
        context->appendDialectRegistry(registry);
        source_mgr->AddNewSourceBuffer(std::move(buffer), llvm::SMLoc());
        return mlir::OwningOpRef<mlir::ModuleOp>(
            mlir::parseSourceFile<mlir::ModuleOp>(*source_mgr, context));
      }
    
      mlir::Location loc =
          mlir::FileLineColLoc::get(context, input_filename, /*line=*/0,
                                    /*column=*/0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 03:47:03 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util_test.cc

    namespace tensorflow {
    namespace {
    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> GetMlirModuleFromString(
        llvm::StringRef string, mlir::MLIRContext* context) {
      mlir::DialectRegistry mlir_registry;
      RegisterAllTensorFlowDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
      mlir::OwningOpRef<mlir::ModuleOp> mlir_module;
      auto status =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top