- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CanHaveSideEffects (0.17 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_while_results.cc
if (candidate_op == nullptr) return false; // Don't prune if candidate op might have side effects. if (isa_and_nonnull<TF::TensorFlowDialect>(candidate_op->getDialect())) { if (TF::TensorFlowDialect::CanHaveSideEffects(candidate_op)) { return false; } } else if (!isMemoryEffectFree(candidate_op)) { return false; } // Don't prune if the body block argument has any other user.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 16 01:49:07 UTC 2022 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_dialect.h
// Returns true if the op can be duplicated during transformations. static bool CanDuplicate(Operation *op); // Returns true if the op can have side effects. static bool CanHaveSideEffects(Operation *op); // Registered hook to materialize a constant operation from a given attribute // value with the desired resultant type. Operation *materializeConstant(OpBuilder &builder, Attribute value, Type type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc
? fallback_effect_op_interface_ : nullptr; } return nullptr; } // Returns true if the op can have side effects. bool TensorFlowDialect::CanHaveSideEffects(Operation *op) { // If the op has no memory side effects, it has no side effects if (isMemoryEffectFree(op)) return false; // If the op is marked stateless using the `is_stateless` attribute, then
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc
} else { iter->second.AddEffects(side_effects); } } bool MayHaveSideEffect(Operation* op) { if (isa_and_nonnull<TF::TensorFlowDialect>(op->getDialect())) return TensorFlowDialect::CanHaveSideEffects(op); if (mlir::isMemoryEffectFree(op)) return false; // Conservatively assume that there can be side effects. return true; } bool ShouldUseResourceAliasAnalysis(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 41.2K bytes - Viewed (0)