Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 435 for ModuleOp (0.22 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.h

    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    
    namespace tflite {
    
    // Returns serialized string for the generated flatbuffer.
    std::optional<std::string> ExportRuntimeMetadata(mlir::ModuleOp module);
    
    }  // namespace tflite
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 28 05:18:47 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration_test.cc

    TEST_F(PreCalibrationComponentTest,
           HasCustomAggregatorOpAndQuantizableFuncForSimpleDotGeneral) {
      PreCalibrationComponent component(ctx_.get());
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(R"mlir(
        module attributes {} {
          func.func @main(%arg0: tensor<1x4xf32>) -> tensor<1x3xf32> attributes {} {
            %0 = stablehlo.constant dense<1.0> : tensor<4x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 21:41:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/static_range_ptq.h

              signature_def_map,
          absl::flat_hash_map<FunctionName, FunctionAlias> function_aliases);
    
      // Runs the static-range post-training quantization (PTQ) on `module_op`.
      absl::StatusOr<ModuleOp> Run(
          ModuleOp module_op,
          const ::stablehlo::quantization::QuantizationConfig& config) override;
    
     private:
      // A non-owning `MLIRContext`. This `MLIRContext` should exceed the lifetime
      // of `StaticRangePtqComponent`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 02:44:03 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types_test.cc

    #include "tsl/lib/core/status_test_util.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir::quant::stablehlo {
    namespace {
    
    using ::mlir::DialectRegistry;
    using ::mlir::MLIRContext;
    using ::mlir::ModuleOp;
    using ::mlir::OwningOpRef;
    using ::tensorflow::monitoring::testing::CellReader;
    using ::testing::Test;
    
    static constexpr char kMetricsName[] =
        "/tensorflow/core/tf2xla/tf_quant_op_count";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 09:05:02 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/passes/decompose.cc

    class DecomposeTFOpsPass
        : public PassWrapper<DecomposeTFOpsPass, OperationPass<func::FuncOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(DecomposeTFOpsPass)
    
      explicit DecomposeTFOpsPass(std::optional<ModuleOp> external_tfr_module)
          : external_tfr_module_(external_tfr_module) {}
    
      StringRef getArgument() const final { return "tfr-decompose"; }
    
      StringRef getDescription() const final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.h

    namespace mlir {
    namespace tf_saved_model {
    
    // Initializes all variables in Session Init function for all variables in
    // 'session'.
    LogicalResult InitializeVariablesInSessionInitializer(
        ModuleOp module, tensorflow::Session *session);
    
    }  // namespace tf_saved_model
    
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 14:25:57 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_passes.td

    include "mlir/Pass/PassBase.td"
    
    // Internal TF2XLA Bridge Passes used during interence only.
    def InferenceMetricsPass : Pass<"tf2xla-inference-metrics-pass", "ModuleOp"> {
      let summary = "A pass to go over a Module and collect various metrics";
      let description = [{
        Collects metrics about a Module during inference, such as which ops are used.
      }];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 05 21:24:51 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

      if (Operation *nested_module = symbol_table.lookup(kNestedModule)) {
        nested_module->emitOpError("unexpected already present outlined module.");
        return signalPassFailure();
      }
      ModuleOp outlined_module = ModuleOp::create(getOperation().getLoc());
      outlined_module->setAttrs(getOperation()->getAttrDictionary());
      outlined_module->setAttr(SymbolTable::getSymbolAttrName(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/weight_only_ptq.cc

    using ::tensorflow::quantization::RunPasses;
    
    WeightOnlyPtqComponent::WeightOnlyPtqComponent(absl::Nonnull<MLIRContext*> ctx)
        : ctx_(ABSL_DIE_IF_NULL(ctx)) {}  // Crash OK
    
    absl::StatusOr<ModuleOp> WeightOnlyPtqComponent::Run(
        ModuleOp module_op, const QuantizationConfig& config) {
      TF_RETURN_IF_ERROR(RunPasses(
          kName, /*add_passes_func=*/
          [&config](PassManager& pm) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.h

    namespace mlir {
    namespace tf_saved_model {
    
    // Creates GlobalTensorOp for each variable from function arguments and converts
    // them to the corresponding saved model arguments.
    LogicalResult LiftVariables(ModuleOp module, ::tensorflow::Session* session);
    
    }  // namespace tf_saved_model
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 14:25:57 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top