- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 196 for strref (0.1 sec)
-
tensorflow/compiler/mlir/tfr/utils/utils.cc
return *ops; } void CollectAllowedAttrs(CallOp src, NamedAttrList* attrs) { for (auto& attr : src->getAttrs()) { if (GetAllowedAttributes().contains(attr.getName().strref())) { attrs->append(attr); } } } // Adds `attrs` to all the operations between `begin` and `end` in the same // block. Does not include `end`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc
mlir::cast<NameLoc>(locations.front()).getName().strref(); StringRef op_type = op_type_with_suffix.substr(0, op_type_with_suffix.size() - 1); new_unit.set_op_type(op_type.str()); if (isa<NameLoc>(locations.back())) { StringRef name_loc_id = mlir::cast<NameLoc>(locations.back()).getName().strref(); set_node_and_func_name(new_unit, name_loc_id); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/add_functions_for_exported_names.cc
for (NamedAttribute a : attrs) { if (a.getName().strref().starts_with("tf_saved_model.")) { f.removeArgAttr(i, a.getName()); } } } for (int i = 0; i < f.getNumResults(); ++i) { for (NamedAttribute a : f.getResultAttrs(i)) { if (a.getName().strref().starts_with("tf_saved_model.")) { f.removeResultAttr(i, a.getName()); } } } }
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/quantization/tensorflow/cc/quantization_unit_loc.cc
auto callsite_loc = llvm::dyn_cast<CallSiteLoc>(attr); if (!mlir::isa<NameLoc>(callsite_loc.getCaller())) return false; StringRef caller_name = mlir::cast<NameLoc>(callsite_loc.getCaller()).getName().strref(); return caller_name.starts_with(kQuantizationUnitPrefix) && caller_name.ends_with(kQuantizationUnitSuffix); } std::optional<QuantizationUnitLoc::QuantizationUnit> FindQuantizationUnitFromLoc(Location loc) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/location_utils.cc
if (!locations.empty()) { // Skip locations for propagating op_type metadata. if (auto name_loc = mlir::dyn_cast<mlir::NameLoc>(locations[0])) { if (name_loc.getName().strref().ends_with(":")) { if (locations.size() == 2) return locations[1]; else if (locations.size() > 2) return mlir::FusedLoc::get( fused_loc.getContext(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/manipulate_model_attr.cc
// Splits the "inputs" field to retrieve individual input names. Ignores // empty strings. SmallVector<StringRef> inputs_attrs{}; cast<StringAttr>(named_attr.getValue()) .strref() .split(inputs_attrs, /*Separator=*/',', /*MaxSplit=*/-1, /*KeepEmpty=*/false); inputs_attrs.emplace_back(input_name); const std::string new_inputs_attr_str =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 26 01:13:26 UTC 2023 - 2.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h
return attr.getName().strref().front() == '_'; }); } // Copies outside compilation attribute from `from` to `to`. inline void CopyXlaOutsideCompilationAttributes(Operation *from, Operation *to) { CopyAttributes(from, to, [](const NamedAttribute &attr) { return attr.getName().strref() == kXlaOutsideCompilationAttr; }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 8.7K bytes - Viewed (0) -
src/crypto/x509/internal/macos/corefoundation.go
func CFErrorCopyDescription(errRef CFRef) CFRef { ret := syscall(abi.FuncPCABI0(x509_CFErrorCopyDescription_trampoline), uintptr(errRef), 0, 0, 0, 0, 0) return CFRef(ret) } func x509_CFErrorCopyDescription_trampoline() //go:cgo_import_dynamic x509_CFErrorGetCode CFErrorGetCode "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation" func CFErrorGetCode(errRef CFRef) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 21 20:05:17 UTC 2022 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/metrics/types_util.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/strip_saved_module_metadata.cc
: public impl::StripSavedModuleMetadataPassBase< StripSavedModuleMetadataPass> { void runOnOperation() override; }; bool ShouldStripAttr(NamedAttribute &namedAttr) { auto name = namedAttr.getName().strref(); return name.starts_with("tf_saved_model."); } void StripModule(Operation *module) { auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range( module->getAttrs(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 3.4K bytes - Viewed (0)