- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for removeStar (0.3 sec)
-
src/go/doc/reader.go
Methods: sortedFuncs(t.methods, allMethods), } i++ } slices.SortFunc(list, func(a, b *Type) int { return strings.Compare(a.Name, b.Name) }) return list } func removeStar(s string) string { if len(s) > 0 && s[0] == '*' { return s[1:] } return s } func sortedFuncs(m methodSet, allMethods bool) []*Func { list := make([]*Func, len(m)) i := 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 27.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_cluster_cleanup_attributes.cc
if (isa<tf_device::ClusterOp>(op)) return WalkResult::advance(); op->removeAttr(TF::kReplicationInfoAttr); op->removeAttr(TF::kCompileDeviceTypeAttr); // This attribute is used for op colocation. Since all ops are located // on a single device cluster, this private attribute is no longer // needed. op->removeAttr(kClassAttr); if (auto attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/add_functions_for_exported_names.cc
void runOnOperation() override; }; // Set the (array of) exported name(s) of a (public) function to just // contain the given string. void SetExportedName(func::FuncOp f, StringRef name) { OpBuilder b(f); f->removeAttr(kTfSavedModelExportedNamesAttr); f->setAttr(kTfSavedModelExportedNamesAttr, b.getStrArrayAttr({name})); } // Convert a savedmodel public function into a private function.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/drop_savedmodel_semantics.cc
auto exported_names = builder.getStringAttr(kTfSavedModelExportedNamesAttr); auto index_path = builder.getStringAttr(kTfSavedModelIndexPathAttr); module.walk([&](func::FuncOp func) { func->removeAttr(exported_names); for (unsigned i = 0, e = func.getNumArguments(); i != e; ++i) { if (func.getArgAttrOfType<FlatSymbolRefAttr>(i, bound_input)) { func.removeArgAttr(i, bound_input); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 13 23:39:10 UTC 2022 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/move_tpu_compile_to_front.cc
op = op->getParentOp(); } } }); } void UnmarkCompilationOps(Operation* func) { func->walk([&](Operation* op) { while (op && op != func) { op->removeAttr("_is_compilation"); op->removeAttr("_wraps_compilation"); op = op->getParentOp(); } }); } int OutsideCompilationOrdering(Operation* predecessor, Operation* op) { // Actual compilations go first.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 17 00:26:18 UTC 2023 - 3.2K bytes - Viewed (0) -
tests/integration/telemetry/api/customize_metrics_test.go
return err } return nil }, retry.Delay(1*time.Second), retry.Timeout(300*time.Second)) // check tag removed if strings.Contains(httpMetricVal, removedTag) { t.Errorf("failed to remove tag: %v", removedTag) } util.ValidateMetric(t, cluster, promInst, httpDestinationQuery, 1) util.ValidateMetric(t, cluster, promInst, grpcDestinationQuery, 1)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/canonicalize_compile_and_replicate_attributes.cc
// Convert `_tpu_replicate`. if (op->hasAttr(TF::kTpuReplicateAttr)) { op->setAttr(tensorflow::kReplicationInfoAttr, op->getAttr(TF::kTpuReplicateAttr)); op->removeAttr(tensorflow::kTpuReplicateAttr); op->setAttr(tensorflow::kCompileDeviceTypeAttr, builder.getStringAttr(tensorflow::kTpuDevice)); } // Convert `_XlaMustCompile`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_to_legacy_compile_and_replicate_attributes.cc
return WalkResult::interrupt(); if (op->hasAttr(TF::kReplicationInfoAttr)) { op->setAttr(TF::kTpuReplicateAttr, op->getAttr(TF::kReplicationInfoAttr)); op->removeAttr(TF::kReplicationInfoAttr); op->removeAttr(TF::kCompileDeviceTypeAttr); } return mlir::WalkResult::advance(); }); return failure(result.wasInterrupted()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/strip_saved_module_metadata.cc
for (auto namedAttr : stripAttrs) { module->removeAttr(namedAttr.getName()); } } void StripFunction(func::FuncOp func) { auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range( func->getAttrs(), [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); })); for (auto namedAttr : stripAttrs) { func->removeAttr(namedAttr.getName()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/strip_tf_attributes.cc
auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range( func->getAttrs(), [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); })); for (auto namedAttr : stripAttrs) { func->removeAttr(namedAttr.getName()); } for (int i = 0; i < func.getNumArguments(); ++i) { llvm::ArrayRef<mlir::NamedAttribute> attrs = mlir::function_interface_impl::getArgAttrs(func, i);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 3.2K bytes - Viewed (0)