Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 437 for module_op_ (0.62 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/resource_analyzer_test_pass.cc

        }
      });
    }
    
    void ResourceAnalyzerTestPass::runOnOperation() {
      ModuleOp module_op = getOperation();
      TF::ResourceAnalyzer resource_analyzer(module_op);
    
      PrintAnalysisResults(resource_analyzer, module_op);
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateResourceAnalyzerTestPass() {
      return std::make_unique<ResourceAnalyzerTestPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 00:21:29 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

      return symbol_table.replaceAllSymbolUses(
          main_func_op, StringAttr::get(module_op.getContext(), new_func_name),
          module_op);
    }
    
    void InsertMainFunctionPass::runOnOperation() {
      ModuleOp module_op = getOperation();
    
      if (failed(RenameExistingMainFunction(module_op))) {
        module_op->emitError("Failed to rename existing function `@main`.");
        signalPassFailure();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc

    }
    
    // Creates and returns a new `FuncOp` named "tf_quant__save". The resulting
    // `FuncOp`'s body has no ops.
    func::FuncOp CreateEmptySaveFunc(ModuleOp module_op) {
      OpBuilder builder(module_op);
      builder.setInsertionPointToEnd(&module_op.getBodyRegion().front());
    
      auto filename_input_type = RankedTensorType::get(
          /*shape=*/{}, /*elementType=*/builder.getType<TF::StringType>());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/report.cc

    }  // namespace
    
    QuantizationReport::QuantizationReport(ModuleOp module_op)
        : quantization_results_(CollectResultsFromModuleOp(module_op)) {}
    
    QuantizationResults QuantizationReport::CollectResultsFromModuleOp(
        ModuleOp module_op) const {
      QuantizationResults results{};
    
      PopulateQuantizedResults(module_op, results);
      PopulateNonQuantizedResults(module_op, results);
    
      return results;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import.cc

      std::vector<std::string> exported_names = signature_keys;
      absl::StatusOr<OwningOpRef<ModuleOp>> module_op =
          SavedModelSignatureDefsToMlirImport(saved_model_path, tags,
                                              absl::MakeSpan(exported_names), &ctx,
                                              import_options, &bundle);
      if (!module_op.status().ok()) {
        return absl::InternalError(absl::StrCat("Failed to import SavedModel: ",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc

          return %0 : tensor<2x!quant.uniform<i8:f32, 1.000000e+00:0>>
        }
      )mlir";
    
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kFullyQuantizedAdd);
      ASSERT_TRUE(module_op);
    
      auto func_op = module_op->lookupSymbol<func::FuncOp>("fully_quantized_add");
      ASSERT_THAT(func_op, NotNull());
    
      auto add_op_itr = func_op.getBody().op_begin<mlir::stablehlo::AddOp>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.h

        mlir::ModuleOp module_op, mlir::MLIRContext* context,
        std::optional<Session*> session, bool run_tf_to_stablehlo,
        bool deserialize_xla_call_module,
        llvm::ArrayRef<llvm::ArrayRef<int64_t>> input_arg_shapes = {});
    
    // Overload of `PreprocessAndFreezeGraph` that uses the default MLIR dump file
    // prefix.
    inline absl::Status PreprocessAndFreezeGraph(mlir::ModuleOp module_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export.h

      std::string checkpoint_dir = "";
    
      // Name used to identify the ModuleOp this is exporting. Only used for
      // debugging and does not modify the behavior of the export.
      std::string debug_name = "stablehlo_quant";
    };
    
    // Creates `ExportedModel` from `module_op`. `module_op` goes through post
    // process passes before an `ExportModel` is created.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.cc

    }
    
    }  // namespace
    
    absl::StatusOr<mlir::ModuleOp> RunQuantization(
        const SavedModelBundle* saved_model_bundle,
        const absl::string_view saved_model_dir,
        const std::unordered_set<std::string>& saved_model_tags,
        const QuantizationConfig& quantization_config,
        const PyFunctionLibrary* quantization_py_function_lib,
        mlir::ModuleOp module_op) {
      if (saved_model_bundle == nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 10:49:12 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export_test.cc

      mlir::OwningOpRef<mlir::ModuleOp> module_op = ParseModuleOpString(R"mlir(
        module attributes {tf_saved_model.semantics} {
          func.func @main() -> () attributes {tf_saved_model.exported_names = ["main"]} {
            tf_executor.graph {
              tf_executor.fetch
            }
            return
          }
        }
      )mlir");
      ASSERT_TRUE(module_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top