- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 293 for runOnOperation (0.2 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/materialize_mlir_passthrough_op.cc
class MaterializePassthroughOpPass : public impl::MaterializePassthroughOpBase<MaterializePassthroughOpPass> { public: void runOnOperation() override; }; void MaterializePassthroughOpPass::runOnOperation() { getOperation().walk([](TF::MlirPassthroughOp op) { std::string module_string(op.getMlirModule()); // Parse the module. auto nested_module =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/remove_var_init_by_const.cc
} StringRef getDescription() const final { return "Removes `tf.AssignVariableOp(tf.VarHandleOp, tf.Const)` patterns " "from the initializer function of type 'restore_op'."; } void runOnOperation() override; }; // Finds and removes the `tf.AssignVariableOp(tf.VarHandleOp, tf.Const)` // pattern. `tf.VarHandleOp` and `tf.Const` are removed unless they are used by // other ops.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 03 12:04:03 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc
// the textual format (on the commandline for example). return "quant-cast-bf16-ops-to-f32"; } StringRef getDescription() const final { return "Cast BF16 operations to F32."; } void runOnOperation() override; }; class CastBf16OpsToF32 : public RewritePattern { public: explicit CastBf16OpsToF32(MLIRContext* context) : RewritePattern(MatchAnyOpTypeTag(), /*benefit=*/1, context) {} private:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_identity_pruning.cc
#define GEN_PASS_DEF_TPUIDENTITYPRUNINGPASS #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc" struct TPUIdentityPruning : public impl::TPUIdentityPruningPassBase<TPUIdentityPruning> { void runOnOperation() override; }; // Collects all reachable functions (via call ops) from a given region. SmallVector<func::FuncOp, 4> CollectReachableFunctions(Region& region) { llvm::SmallPtrSet<func::FuncOp, 4> reachable_funcs;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/analyze_variables.cc
} class AnalyzeVariablesPass : public impl::AnalyzeVariablesPassBase<AnalyzeVariablesPass> { public: explicit AnalyzeVariablesPass() {} void runOnOperation() override; }; void AnalyzeVariablesPass::runOnOperation() { auto* context = &getContext(); auto module = getOperation(); bool legalize_to_tfl = true; module.walk([&](Operation* op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/add_functions_for_exported_names.cc
struct AddFunctionsForExportedNamesPass : public impl::AddFunctionsForExportedNamesPassBase< AddFunctionsForExportedNamesPass> { void runOnOperation() override; }; // Set the (array of) exported name(s) of a (public) function to just // contain the given string. void SetExportedName(func::FuncOp f, StringRef name) { OpBuilder b(f);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_colocate_composite_resource_ops.cc
// (packed tensors) with the underlying physical TPU device. struct TPUColocateCompositeResourceOps : public impl::TPUColocateCompositeResourceOpsPassBase< TPUColocateCompositeResourceOps> { void runOnOperation() override; }; // Wraps single op in `tf_device.launch` for explicit device assignment. void WrapOpInLaunch(OpBuilder* builder, Location loc, Operation* op, llvm::StringRef device) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 16 17:41:12 UTC 2023 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc
public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(UnwrapXlaCallModuleOpPass) explicit UnwrapXlaCallModuleOpPass() = default; private: void runOnOperation() override; }; void UnwrapXlaCallModuleOp(TF::XlaCallModuleOp call_op, SymbolTable& symbol_table) { // Do not inline lifted quantized functions used for fusing patterns.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init_test_pass.cc
class InitializeVariablesInSessionInitializerPass : public impl::InitializeVariablesInSessionInitializerPassBase< InitializeVariablesInSessionInitializerPass> { public: void runOnOperation() final { static tensorflow::Session* session = new TF::test_util::FakeSession(); if (failed(tf_saved_model::InitializeVariablesInSessionInitializer( getOperation(), session))) signalPassFailure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 09:19:38 UTC 2022 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc
// internal variants by introducing XlaRecvTPUEmbeddingDeduplicationData op. struct RewriteTPUEmbeddingOps : public impl::RewriteTPUEmbeddingOpsPassBase<RewriteTPUEmbeddingOps> { void runOnOperation() override; }; // Rewrites the given op to `OpT` op after adding the given operand at the end. template <typename OpT> OpT AddOperandAndRewriteAs(Operation* op, Value operand, NamedAttrList attr,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 22:55:42 UTC 2024 - 4.5K bytes - Viewed (0)