Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for noinline_functions_ (0.39 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/mark_functions_noinline.cc

      // Gets a set of function names from `noinline_functions_`.
      StringSet<> GetNoinlineFunctionsSet() {
        StringSet<> noinline_functions;
        noinline_functions.insert(noinline_functions_.begin(),
                                  noinline_functions_.end());
        return noinline_functions;
      }
    
      // Names of the functions to be marked noinline.
      ListOption<std::string> noinline_functions_;
    };
    
    void MarkFunctionsNoinlinePass::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 18 02:52:57 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.h

    // the comments of `tensorflow::quantization::MaybeEnableIrPrinting` function.
    absl::Status PreprocessAndFreezeGraph(
        absl::string_view mlir_dump_file_prefix, bool is_inliner_run,
        const absl::flat_hash_set<std::string>& noinline_functions,
        mlir::ModuleOp module_op, mlir::MLIRContext* context,
        std::optional<Session*> session, bool run_tf_to_stablehlo,
        bool deserialize_xla_call_module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.cc

      // aliased functions.
      pm_after_freezing_variables.addNestedPass<mlir::func::FuncOp>(
          mlir::quant::CreateMarkFunctionsNoinlinePass(std::vector<std::string>(
              noinline_functions.begin(), noinline_functions.end())));
      if (is_inliner_run) {
        pm_after_freezing_variables.addPass(mlir::createInlinerPass());
      }
      if (run_tf_to_stablehlo) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow_to_stablehlo/tf_to_stablehlo.cc

          input_arg_shapes_vec.begin(), input_arg_shapes_vec.end());
      TF_RETURN_IF_ERROR(tensorflow::quantization::PreprocessAndFreezeGraph(
          /*mlir_dump_file_prefix=*/"", /*is_inliner_run=*/true,
          /*noinline_functions=*/aliased_function_names, *module_op, context,
          session,
          /*run_tf_to_stablehlo=*/true, /*deserialize_xla_call_module=*/false,
          input_arg_shapes));
    
      return std::move(module_op);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h

    // Creates a pass that marks functions with the attribute `tf._noinline = true`
    // to avoid being inlined by the `InlinerPass`. `noinline_functions` is the name
    // of the functions to mark.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateMarkFunctionsNoinlinePass(
        ArrayRef<std::string> noinline_functions);
    
    // Removes `tf.AssignVariableOp(tf.VarHandleOp, tf.Const)` patterns from the
    // initializer function (type = "restore_op").
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import.cc

        return aliased_function_names.insert(aliases.first);
      });
    
      TF_RETURN_IF_ERROR(PreprocessAndFreezeGraph(
          mlir_dump_file_prefix, /*is_inliner_run=*/true,
          /*noinline_functions=*/aliased_function_names, *module_op, &ctx,
          saved_model_bundle == nullptr ? nullptr
                                        : saved_model_bundle->GetSession(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc

      });
    
      TF_RETURN_IF_ERROR(PreprocessAndFreezeGraph(
          /*mlir_dump_file_prefix=*/kDefaultTfQuantMlirDumpFilePrefix,
          /*is_inliner_run=*/is_inliner_run,
          /*noinline_functions=*/aliased_function_names, module_ref.get(), context,
          bundle ? bundle->GetSession() : nullptr, run_tf_to_stablehlo,
          deserialize_xla_call_module));
      return module_ref;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top