- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 78 for getOps (0.72 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.cc
if (!bundle_writer.status().ok()) { return bundle_writer.status(); } std::vector<std::string> saved_variable_shared_names; for (auto assign_variable_op : session_init_func_type_restore_op.getOps<mlir::TF::AssignVariableOp>()) { if (const absl::StatusOr<std::string> variable_shared_name = AddTensorToBundleWriter(assign_variable_op, bundle_writer); !variable_shared_name.ok()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:36:55 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/guarantee_all_funcs_one_use.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc
MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LegalizeWhilePass) void RunOnFunction(func::FuncOp func); void runOnOperation() override { for (auto op : getOperation().getOps<func::FuncOp>()) RunOnFunction(op); } }; } // namespace // Inserts call to the given function into the 'region'. void CreateRegionWithCall(func::FuncOp func, Region& region, Location loc) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc
// failure. template <typename OpT> LogicalResult GetOp(Region* region, OpT* result) { *result = {}; for (auto op : region->getOps<OpT>()) { if (*result) return op.emitError("should be unique within a function"); *result = op; } return success(); } LogicalResult RunOnRegion(Region* region) { RecvTPUEmbeddingActivationsOp recv_op; if (failed(GetOp(region, &recv_op))) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 22:55:42 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc
})) return replicated_input.emitOpError() << "expects all inputs from 'tf.TPUPartitionedInputV2' ops"; const auto metadata_iter = replicated_input->getBlock()->getOps<TF::TPUReplicateMetadataOp>(); TF::TPUReplicateMetadataOp metadata; if (!metadata_iter.empty()) metadata = *(metadata_iter.begin()); auto first_partitioned_input = llvm::cast<TF::TPUPartitionedInputV2Op>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 24 23:08:55 UTC 2023 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc
EXPECT_TRUE(module_op_ref); return module_op_ref; } mlir::MLIRContext ctx_{}; }; func::FuncOp GetMainFuncOp(ModuleOp module_op) { for (auto func_op : module_op.getOps<func::FuncOp>()) { if (func_op.getSymName() == "main") { return func_op; } } return {}; } TEST_F(ConvertAssetArgsTest, ConvertsSingleAssetArg) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/propagate_quantize_type.cc
FrozenRewritePatternSet frozen_patterns(std::move(patterns)); // Propagation can happen recursively with multiple functions so keep this // module level. for (auto func : module_op.getOps<func::FuncOp>()) { if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) { func.emitError() << "quant-propagate-quantize-type failed."; signalPassFailure(); } } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/prepare_quantize.cc
MLIRContext* ctx = module_op.getContext(); auto func_op_quant_spec = GetStableHloOpQuantSpec; auto func_op_quant_scale_spec = GetStableHloQuantConstraints; for (auto func_op : module_op.getOps<func::FuncOp>()) { // The function might contain more stats ops than required, and it will // introduce requantize if the calibration stats have conflicts. This tries // to remove all the redundant stats ops.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 03 05:11:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc
} } // namespace ResourceAnalyzer::ResourceAnalyzer(ModuleOp module, bool skip_session_init) { auto session_init_func = GetSessionInitializerFunc(module); for (auto func : module.getOps<func::FuncOp>()) { if (skip_session_init && func == session_init_func) continue; (void)AnalyzeRegion(func.getRegion()); } } void ResourceAnalyzer::SetPotentiallyWritten(Value resource) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/update_control_dependencies.cc
signalPassFailure(); return; } TF::SideEffectAnalysis side_effect_analysis(module_op, op_to_parallel_ids_map); for (auto func : module_op.getOps<func::FuncOp>()) { if (func.isExternal()) continue; const auto& analysis_for_func = side_effect_analysis.GetAnalysisForFunc(func); if (failed(UpdateAllControlDependencies(func, analysis_for_func))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 30 07:53:51 UTC 2024 - 8.4K bytes - Viewed (0)