- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for AttrType (0.13 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.h
// Ensure an attribute named attr_name exists and it is of type AttrType. // If so, sets the `out_attr` pointer to point to the casted attribute. template <typename AttrType> bool EnsureAttribute(const DictionaryAttr& composite_attributes, const std::string& attr_name, AttrType* out_attr) { Attribute attr = composite_attributes.get(attr_name); if (!mlir::isa_and_nonnull<AttrType>(attr)) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 29 18:33:05 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/fake_quant_utils.h
struct FetchMinMaxAttrs { using AttrType = FloatAttr; bool operator()(TFFakeQuantOp tf_op, AttrType &min_value, AttrType &max_value) const { min_value = tf_op.getMinAttr(); max_value = tf_op.getMaxAttr(); return true; // Successfully matched and fetched. } }; template <class TFFakeQuantOp> struct FetchConstantMinMaxInputs { using AttrType = DenseFPElementsAttr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/fake_quant_utils.h
struct FetchMinMaxAttrs { using AttrType = FloatAttr; bool operator()(TFFakeQuantOp tf_op, AttrType &min_value, AttrType &max_value) const { min_value = tf_op.getMinAttr(); max_value = tf_op.getMaxAttr(); return true; // Successfully matched and fetched. } }; template <class TFFakeQuantOp> struct FetchConstantMinMaxInputs { using AttrType = DenseFPElementsAttr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go
} skipArgs, ok := kvFuncSkipArgs(fn) if !ok { // Not a slog function that takes key-value pairs. return } // Here we know that fn.Pkg() is "log/slog". if attrType == nil { attrType = fn.Pkg().Scope().Lookup("Attr").Type() } if isMethodExpr(pass.TypesInfo, call) { // Call is to a method value. Skip the first argument. skipArgs++ } if len(call.Args) <= skipArgs {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 7.2K bytes - Viewed (0) -
src/html/template/attr.go
"value": contentTypeUnsafe, "width": contentTypePlain, "wrap": contentTypePlain, "xmlns": contentTypeURL, } // attrType returns a conservative (upper-bound on authority) guess at the // type of the lowercase named attribute. func attrType(name string) contentType { if strings.HasPrefix(name, "data-") { // Strip data- so that custom attribute heuristics below are // widely applied.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 06 15:53:04 UTC 2021 - 6.2K bytes - Viewed (0) -
src/debug/dwarf/type.go
t.Val[n] = f } } case TagPointerType: // Type modifier (DWARF v2 ยง5.2) // Attributes: // AttrType: subtype [not required! void* has no AttrType] // AttrAddrClass: address class [ignored] t := new(PtrType) typ = t typeCache[off] = t if e.Val(AttrType) == nil { t.Type = &VoidType{} break } t.Type = typeOf(e) case TagSubroutineType:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 21.9K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux.go
return nil, err } // attrsProcessed tracks the number of processed attributes. var attrsProcessed int // length and type of netlink attribute. var length, attrType uint16 // now we are just left with the attributes(struct nlattr) after skipping netlink generic // message; we iterate over all the attributes one by one to construct our Counter object. for reader.Len() > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 9.2K bytes - Viewed (0) -
src/debug/dwarf/attr_string.go
_ = x[AttrFriend-65] _ = x[AttrIdentifierCase-66] _ = x[AttrMacroInfo-67] _ = x[AttrNamelistItem-68] _ = x[AttrPriority-69] _ = x[AttrSegment-70] _ = x[AttrSpecification-71] _ = x[AttrStaticLink-72] _ = x[AttrType-73] _ = x[AttrUseLocation-74] _ = x[AttrVarParam-75] _ = x[AttrVirtuality-76] _ = x[AttrVtableElemLoc-77] _ = x[AttrAllocated-78] _ = x[AttrAssociated-79] _ = x[AttrDataLocation-80] _ = x[AttrStride-81]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 03 17:32:37 UTC 2019 - 7.9K bytes - Viewed (0) -
src/html/template/html.go
// Without this, if .K is empty then .V is the value of // checked, but otherwise .V is the value of the attribute // named .K. return filterFailsafe } s = strings.ToLower(s) if t := attrType(s); t != contentTypePlain { // TODO: Split attr and element name part filters so we can recognize known attributes. return filterFailsafe } for _, r := range s { switch { case '0' <= r && r <= '9':
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 02 19:42:28 UTC 2023 - 7.3K bytes - Viewed (0) -
src/debug/dwarf/type_test.go
for { e, err := r.Next() if err != nil { t.Fatal("r.Next:", err) } if e == nil { break } if e.Tag == TagVariable { vname, _ := e.Val(AttrName).(string) tAttr := e.Val(AttrType) typOff, ok := tAttr.(Offset) if !ok { t.Errorf("variable at offset %v has no type", e.Offset) continue } typ, err := d.Type(typOff) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 19 15:49:05 UTC 2022 - 8.8K bytes - Viewed (0)