- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 234 for eraseOp (0.28 sec)
-
tensorflow/compiler/mlir/lite/utils/utils.h
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/unfold_large_splat_constant.cc
TFL::FillOp fill = op_builder->create<TFL::FillOp>( const_op->getLoc(), splat_elements_attr.getType(), fill_shape, fill_value); const_op->replaceAllUsesWith(fill); const_op->erase(); } }; } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreateUnfoldLargeSplatConstantPass() { return std::make_unique<UnfoldLargeSplatConstantPass>(); } } // namespace TFL
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_identity_pruning.cc
// results. void RemoveIdentityFromRegion(Region& region) { region.walk([](Operation* op) { if (isa<TF::IdentityOp, TF::IdentityNOp>(op)) { op->replaceAllUsesWith(op->getOperands()); op->erase(); } }); } void TPUIdentityPruning::runOnOperation() { SmallVector<tf_device::ClusterOp, 4> clusters; getOperation().walk( [&](tf_device::ClusterOp cluster) { clusters.push_back(cluster); });
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/tensorflow/transforms/functional_control_flow_to_cfg.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 13 11:42:59 UTC 2023 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
builder->setInsertionPoint(old_terminator); builder->create<mlir::tf_device::ReturnOp>(old_terminator->getLoc(), new_cluster_results); old_terminator->erase(); builder->setInsertionPoint(cluster); llvm::SmallVector<Type, 4> new_cluster_result_types; new_cluster_result_types.reserve(new_cluster_results.size());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/raise_custom_ops.cc
} custom_op->setAttrs(inner_op->getAttrs()); builder.create<YieldOp>(loc, inner_op->getResults()); custom_op.getBody().takeBody(region); op->replaceAllUsesWith(custom_op); op->erase(); } } } // namespace std::unique_ptr<OperationPass<func::FuncOp>> CreateRaiseCustomOpsPass() { return std::make_unique<RaiseCustomOpsPass>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_duplicate_resource_ops.cc
op.replaceAllUsesWith(existing_resource->getParentOp()->getResults()); ops_to_remove.push_back(&op); } // Remove op after the loop to avoid crash. for (Operation* op : ops_to_remove) { op->erase(); } } static PassRegistration<MergeDuplicateResourceOpsPass> pass{}; } // namespace std::unique_ptr<OperationPass<func::FuncOp>> CreateMergeDuplicateResourceOpsPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 26 04:26:16 UTC 2023 - 4.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/get_alternative_subgraph.cc
// see if we need to erase the func op. // Ideally it would be nice if we can utilize dynamic illegal op to do // the job. if (device_inference_type.hardware != "CPU" && !IsAllSupportedbySpec(cloned_func, device_inference_type)) { cloned_func.erase(); } } } // Perform the device-specific optimization last.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/weight_only_ptq.cc
*ctx, *module)); // Remove the `tpu` tag for exporting because the output quantized model is // essentially a CPU model. tags.erase("tpu"); py_function_library.SaveExportedModel( dst_saved_model_path, post_calibrated_exported_model, src_saved_model_path, tags, signature_def_map); return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 02:59:01 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util_test.cc
// Wrap the cluster op into a Launch op auto launch_op = tensorflow::WrapOpInLaunch(&builder, loc, cluster, device); EXPECT_TRUE(llvm::isa<mlir::tf_device::LaunchOp>(launch_op)); launch_op->erase(); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 4.3K bytes - Viewed (0)