Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for attrType (0.25 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/encoding/xml/read.go

    			val.SetLen(n)
    			return err
    		}
    		return nil
    	}
    
    	if val.Type() == attrType {
    		val.Set(reflect.ValueOf(attr))
    		return nil
    	}
    
    	return copyValue(val, []byte(attr.Value))
    }
    
    var (
    	attrType            = reflect.TypeFor[Attr]()
    	unmarshalerType     = reflect.TypeFor[Unmarshaler]()
    	unmarshalerAttrType = reflect.TypeFor[UnmarshalerAttr]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  9. src/debug/dwarf/const.go

    	AttrMacroInfo      Attr = 0x43
    	AttrNamelistItem   Attr = 0x44
    	AttrPriority       Attr = 0x45
    	AttrSegment        Attr = 0x46
    	AttrSpecification  Attr = 0x47
    	AttrStaticLink     Attr = 0x48
    	AttrType           Attr = 0x49
    	AttrUseLocation    Attr = 0x4A
    	AttrVarParam       Attr = 0x4B
    	AttrVirtuality     Attr = 0x4C
    	AttrVtableElemLoc  Attr = 0x4D
    	// The following are new in DWARF 3.
    	AttrAllocated     Attr = 0x4E
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  10. src/html/template/transition.go

    		}, len(s)
    	}
    
    	attrName := strings.ToLower(string(s[i:j]))
    	if c.element == elementScript && attrName == "type" {
    		attr = attrScriptType
    	} else {
    		switch attrType(attrName) {
    		case contentTypeURL:
    			attr = attrURL
    		case contentTypeCSS:
    			attr = attrStyle
    		case contentTypeJS:
    			attr = attrScript
    		case contentTypeSrcset:
    			attr = attrSrcset
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 19:54:31 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top