- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 147 for eraseOp (0.64 sec)
-
tensorflow/compiler/aot/codegen_test.cc
// Get rid of all CR characters, we may be running under windows. string sanitized_expected_contents(expected_contents); if (ignore_cr) { sanitized_expected_contents.erase( std::remove(sanitized_expected_contents.begin(), sanitized_expected_contents.end(), '\r'), sanitized_expected_contents.end()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 01 02:13:40 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc
then_name, else_name, if_region.getIsStateless()); CopyAndOverrideAttributes(if_region, if_op, &builder); if_region.replaceAllUsesWith(if_op.getResults()); if_region.erase(); if (to_bool && to_bool.use_empty()) to_bool.erase(); return success(); } // Transform CaseRegion to Case. LogicalResult RegionControlFlowToFunctional::ConvertCaseOp(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc
return failure(); } new_input_types[i] = arg_type; arg.dropAllUses(); if (quantize_op.use_empty()) { quantize_op.erase(); } } else { // `arg` has multiple uses or the user isn't a quantiz op (so we couldn't // rewrite it to a different type. Make a copy of the `arg` and replace // its use.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
auto s_const = builder.create<SparseConstOp>( op->getLoc(), cst.getValue(), s_param, new_value); value.replaceAllUsesWith(s_const.getResult()); cst.erase(); } else if (type.getElementType().isF16()) { std::vector<Eigen::half> dense_data; dense_data.reserve(type.getNumElements()); for (const auto& val : attr.getValues<APFloat>())
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc
status = ReplacePartitionedOp(num_cores_per_replica, partitioned_output); } if (status.has_value()) { if (failed(*status) || !op->use_empty()) return WalkResult::interrupt(); op->erase(); } return WalkResult::advance(); }); if (result.wasInterrupted()) { signalPassFailure(); return; } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc
// Export the result as a FunctionDef. FunctionDef func_def; TF_RETURN_IF_ERROR( ConvertMlirFunctionToFunctionLibraryDef(func, export_confs_, &func_def)); module.erase(); return func_def; } Status TFRDecomposeContext::DecomposeGraph(mlir::ModuleOp user_module) { // Call the decompose passes by using the external symbol table. if (failed(pm_.run(user_module))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 29 02:34:43 UTC 2024 - 9.1K bytes - Viewed (0) -
pkg/kube/krt/filter.go
func FilterIndex[I any, K comparable](idx *Index[I, K], k K) FetchOption { return func(h *dependency) { // Index is used to pre-filter on the List, and also to match in Matches. Provide type-erased methods for both h.filter.listFromIndex = func() any { return idx.Lookup(k) } h.filter.indexMatches = func(a any) bool { return idx.objectHasKey(a.(I), k) } } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/rename_entrypoint_to_main.cc
// } // clang-format on for (auto attr : session_initializer.getInitializers()) { auto sym_attr = mlir::dyn_cast<FlatSymbolRefAttr>(attr); if (!sym_attr) break; entrypoints.erase(sym_attr.getValue()); } } if (entrypoints.empty()) { return fail(module, "No entrypoints found"); } if (entrypoints.size() == 1) { auto entrypoint = entrypoints.begin()->second;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/unfold_splat_constant_pass.cc
op_builder->create<mhlo::BroadcastInDimOp>( const_op->getLoc(), splat_elements_attr.getType(), scalar, broadcast_dims); const_op->replaceAllUsesWith(broadcast_in_dim_op); const_op->erase(); } }; } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreateUnfoldSplatConstantPass() { return std::make_unique<UnfoldSplatConstantPass>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc
ValueRange(resource_args), cluster_func_op.getFuncAttr()); CopyDeviceAndUnderscoredAttributes(cluster_func_op, xla_launch_op); cluster_func_op.replaceAllUsesWith(xla_launch_op.getResults()); cluster_func_op.erase(); } void XlaRewritePass::runOnOperation() { ModuleOp module = getOperation(); SymbolTable symtab(module); OpBuilder builder(&getContext()); module.walk([&](tf_device::ClusterFuncOp cluster_func_op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0)