- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 59 for Fremovexattr (0.18 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc
PatternRewriter& rewriter) const override { // Remove `_tpu_replicate` attributes on each operation first. if (op->hasAttr(tensorflow::kTPUReplicateAttr)) { op->removeAttr(tensorflow::kTPUReplicateAttr); return success(); } // Remove TPU operations. if (isa<TF::TPUReplicateMetadataOp, TF::TPUCompilationResultOp, TF::TPUOrdinalSelectorOp>(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
AddCallOpInWhileOpRegion(while_op.getCond(), cond); while_op->removeAttr("cond"); auto body = symbol_table.lookup<mlir::func::FuncOp>( while_op->getAttr("body").cast<mlir::FlatSymbolRefAttr>().getValue()); AddCallOpInWhileOpRegion(while_op.getBody(), body); while_op->removeAttr("body"); }); } void AddRegionsForStableHLOOp(mlir::ModuleOp module) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc
auto global_tensor = kv.first; const auto& global_tensor_uses = kv.second; if (IsImmutable(global_tensor, global_tensor_uses, resource_analyzer)) { global_tensor->removeAttr("is_mutable"); } } } void EraseUnusedGlobalTensors(ModuleOp module, const GlobalTensorUsesMap& global_tensor_uses) { for (auto global_tensor :
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc
} // The OK status means this op is quantizable. Return failure since the // pattern doesn't rewrite anything yet. if (check_status.ok()) return failure(); call_op->removeAttr(kQuantTraitAttrName); removeAttrMapAttribute(call_op, function_name, check_status.message()); return success(); } // Get the quantization method to apply to this composite function. If set,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 16.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_formation.cc
// "device" attribute since launch op already carries device information. Block* block = ®ion.front(); for (Operation* op : c.ops) { op->moveBefore(block, block->end()); op->removeAttr(builder->getStringAttr("device")); } // Get all escaped live-out values of region, they are used later to determine // return values and types of launch op. llvm::SmallVector<Value, 4> live_outs;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 05 13:30:21 UTC 2023 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc
if (type == FunctionFilter::SKIP_TARGET_ANNOTATION) { op.setAttr(kSkipTargetAnnotation, builder.getUnitAttr()); } else if (type == FunctionFilter::INCLUDE_TARGET_ANNOTATION) { op.removeAttr(kSkipTargetAnnotation); } } } void ApplyTacFilter(ModuleOp module, const TacFilter& tac_filter, SmallVector<Operation*>& filtered_ops, OpBuilder& builder) {
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/tf2xla/internal/passes/tpu_cluster_formation.cc
// nested ops. for (Operation* cluster_op : cluster_ops) { cluster_op->moveBefore(body, body->end()); cluster_op->walk([&](Operation* inner_op) { inner_op->removeAttr(mlir::TF::kReplicationInfoAttr); inner_op->removeAttr(mlir::TF::kCompileDeviceTypeAttr); if (auto attr = inner_op->getAttrOfType<StringAttr>(kDeviceAttr)) { // Preserve device attribute if the op is placed on a replicated core
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc
std::string func_name; if (auto outlined_func_name = op->template getAttrOfType<StringAttr>( TF::kClusterOutlinedFunctionNameAttr)) { op->removeAttr(TF::kClusterOutlinedFunctionNameAttr); func_name = outlined_func_name.str(); } else { func_name = "_func"; } func::FuncOp outlined_func = func::FuncOp::create(op.getLoc(), func_name, func_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
llvm::StringRef host_device) { Block* launch_block = new Block; for (Operation* head_outside_compiled_op : head_outside_compiled_ops) { head_outside_compiled_op->removeAttr(kXlaOutsideCompilationAttr); head_outside_compiled_op->moveBefore(launch_block, launch_block->end()); } mlir::tf_device::LaunchOp launch = CreateLaunchForBlock(
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/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc
<< "quant-stablehlo-lift-quantizable-spots-as-functions failed."; signalPassFailure(); } } // Remove all attr_map attributes. module_op.walk([](Operation* op) { op->removeAttr(kAttrMapAttribute); }); // Perform selective quantization. Iterates over the quantization specs and // applies quantization methods to each matched lifted function.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 9.3K bytes - Viewed (0)