- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 293 for runOnOperation (0.2 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/update_control_dependencies.cc
class UpdateControlDependenciesPass : public impl::ExecutorUpdateControlDependenciesPassBase< UpdateControlDependenciesPass> { public: void runOnOperation() override; }; void ClearControlInputs(Operation* op, int& num_control_inputs_removed) { // We only call this function for island or fetch ops. The second pair of // parentheses is needed for successful compilation.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 30 07:53:51 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/quantize_variables.cc
: public QuantizeVariablesPassBase<QuantizeVariablesPass> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(QuantizeVariablesPass) explicit QuantizeVariablesPass() = default; void runOnOperation() override; private: // Outlines the regions of the WhileOp's cond and body and insert function // calls instead. void QuantizeVariable(OpBuilder &builder,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc
struct OptimizeFunctionalOpsPass : public impl::OptimizeFunctionalOpsPassBase<OptimizeFunctionalOpsPass> { MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(OptimizeFunctionalOpsPass) void runOnOperation() override; }; // Updates function return type of the given functions to match the terminator // op operands' types. // // Requires the function has exactly one block. void UpdateFuncType(func::FuncOp func) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc
explicit PromoteResourcesToArgsPass(llvm::ArrayRef<std::string> functions); void runOnOperation() override; }; PromoteResourcesToArgsPass::PromoteResourcesToArgsPass( llvm::ArrayRef<std::string> functions) { functions_ = functions; } void PromoteResourcesToArgsPass::runOnOperation() { ModuleOp module = getOperation(); if (llvm::size(functions_) == 0) { functions_ = {"main"};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/shlo_simplify.cc
// shlo implementation. class SHLOSimplifyPass : public impl::SHLOSimplifyPassBase<SHLOSimplifyPass> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(SHLOSimplifyPass) void runOnOperation() override { ModuleOp module = getOperation(); RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); PopulateFolderPatterns(patterns);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 03:05:20 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc
return "quant-lift-hashtable-ops-as-args"; } StringRef getDescription() const final { return "Lifts HashTable ops as function arguments."; } void runOnOperation() override; }; // Checks if the given op is a Hashtable op. bool IsHashTableOp(Operation* op) { return llvm::isa<TF::HashTableOp, TF::HashTableV2Op, TF::MutableHashTableV2Op>(op); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 8.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc
class GraphPruningPass : public impl::ExecutorGraphPruningPassBase<GraphPruningPass> { public: GraphPruningPass() = default; explicit GraphPruningPass(llvm::ArrayRef<std::string> ops_to_preserve); void runOnOperation() override; private: bool ShouldPreserveOp(Operation* op); bool ShouldPreserveIsland(IslandOp island); void PruneGraph(GraphOp graph); llvm::SmallDenseSet<mlir::StringAttr, 4> ops_to_preserve_ids_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/nchw_convolution_to_nhwc.cc
namespace { using ::mlir::stablehlo::ConvDimensionNumbersAttr; class NchwConvolutionToNhwcPass : public impl::NchwConvolutionToNhwcPassBase<NchwConvolutionToNhwcPass> { private: void runOnOperation() override; }; // Rewrites NCHW convolution to NHWC. // * Src dimension numbers: [b, f, 0, 1]x[o, i, 0, 1]->[b, f, 0, 1] // * Dst dimension numbers: [b, 0, 1, f]x[0, 1, i, o]->[b, 0, 1, f]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc
return "quant-add-quantization-unit-loc"; } StringRef getDescription() const final { return "Add QuantizationUnitLoc to quantizable layers."; } private: void runOnOperation() override; }; // TF graph nodes are imported with one of following location patterns: // FusedLoc[NameLoc(op_type:), ..., NameLoc(node_name@func_name)] or
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_formation.cc
#define GEN_PASS_DEF_CLUSTERFORMATIONPASS #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc" struct ClusterFormationPass : public impl::ClusterFormationPassBase<ClusterFormationPass> { void runOnOperation() override; }; void ReplaceLiveOutExternalUses(llvm::ArrayRef<Value> live_outs, tf_device::LaunchOp launch_op) { Region* launch_op_region = &launch_op.getBody();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 05 13:30:21 UTC 2023 - 6.8K bytes - Viewed (0)