Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for attr_ (0.04 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go

    	matches, matchObjErr := a.objectMatcher.MatchObjectSelector(h, attr)
    	if !matches && matchObjErr == nil {
    		return nil, nil
    	}
    
    	var invocation *WebhookInvocation
    	for _, r := range h.GetRules() {
    		m := rules.Matcher{Rule: r, Attr: attr}
    		if m.Matches() {
    			invocation = &WebhookInvocation{
    				Webhook:     h,
    				Resource:    attr.GetResource(),
    				Subresource: attr.GetSubresource(),
    				Kind:        attr.GetKind(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.cc

        return false;
      }
    
      return DenseI64AttrToI32Vector(attr, out_vec);
    }
    
    std::optional<bool> GetBoolFromCompositeAttr(
        const DictionaryAttr& composite_attrs, llvm::StringRef attr_name) {
      auto attr = composite_attrs.get(attr_name);
      if (!attr) return std::nullopt;
      if (auto bool_attr = mlir::dyn_cast_or_null<BoolAttr>(attr)) {
        return bool_attr.getValue();
      }
      return std::nullopt;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 18:33:05 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. src/os/exec_posix.go

    )
    
    func startProcess(name string, argv []string, attr *ProcAttr) (p *Process, err error) {
    	// If there is no SysProcAttr (ie. no Chroot or changed
    	// UID/GID), double-check existence of the directory we want
    	// to chdir into. We can make the error clearer this way.
    	if attr != nil && attr.Sys == nil && attr.Dir != "" {
    		if _, err := Stat(attr.Dir); err != nil {
    			pe := err.(*PathError)
    			pe.Op = "chdir"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. src/internal/trace/testdata/testprog/cgo-callback.go

    void go_callback2();
    
    static void *thr(void *arg) {
        go_callback();
        return 0;
    }
    
    static void foo() {
        pthread_t th;
        pthread_attr_t attr;
        pthread_attr_init(&attr);
        pthread_attr_setstacksize(&attr, 256 << 10);
        pthread_create(&th, &attr, thr, 0);
        pthread_join(th, 0);
    }
    
    static void bar() {
        go_callback2();
    }
    */
    import "C"
    
    import (
    	"log"
    	"os"
    	"runtime"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. src/os/exec_plan9.go

    	Kill      Signal = syscall.Note("kill")
    )
    
    func startProcess(name string, argv []string, attr *ProcAttr) (p *Process, err error) {
    	sysattr := &syscall.ProcAttr{
    		Dir: attr.Dir,
    		Env: attr.Env,
    		Sys: attr.Sys,
    	}
    
    	sysattr.Files = make([]uintptr, 0, len(attr.Files))
    	for _, f := range attr.Files {
    		sysattr.Files = append(sysattr.Files, f.Fd())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.h

      if (auto float_ty = mlir::dyn_cast<FloatType>(ty)) {
        FloatAttr attr = FloatAttr::get(float_ty, raw_value);
        return DenseElementsAttr::get(scalar_ty, attr);
      } else if (auto int_ty = mlir::dyn_cast<IntegerType>(ty)) {
        IntegerAttr attr = IntegerAttr::get(int_ty, raw_value);
        return DenseElementsAttr::get(scalar_ty, attr);
      } else if (auto complex_ty = mlir::dyn_cast<ComplexType>(ty)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc

      StringRef device;
      if (auto attr = op->getAttrOfType<StringAttr>("device")) {
        device = attr.getValue();
      }
    
      StringRef container;
      if (auto attr = op->getAttrOfType<StringAttr>("container")) {
        container = attr.getValue();
      }
    
      StringRef shared_name;
      if (auto attr = op->getAttrOfType<StringAttr>("shared_name")) {
        shared_name = attr.getValue();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/time/genzabbrs.go

    }
    
    const wzURL = "https://raw.githubusercontent.com/unicode-org/cldr/main/common/supplemental/windowsZones.xml"
    
    type MapZone struct {
    	Other     string `xml:"other,attr"`
    	Territory string `xml:"territory,attr"`
    	Type      string `xml:"type,attr"`
    }
    
    type SupplementalData struct {
    	Zones []MapZone `xml:"windowsZones>mapTimezones>mapZone"`
    }
    
    func readWindowsZones() ([]*zone, error) {
    	r, err := http.Get(wzURL)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

    Attribute DefaultOrNullAttr(OpBuilder& builder, const Attribute& attr) {
      if (attr) return attr;
      return builder.getStringAttr(kNullAttributeValue);
    }
    
    // Checks whether the value of a constant equals the given float, regardless
    // of the tensor dimension.
    bool FloatValueEquals(const Attribute& attr, const double value) {
      const auto fp_attr = mlir::dyn_cast_or_null<DenseFPElementsAttr>(attr);
      if (!fp_attr) return false;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java

                String tag = h23element.tagName();
                String name = h23element.text();
                String anchor = h23element.attr("id");
                if(!name.startsWith("Table") && tag.equals("h2")){
                    toc.append("<li class=\"mainTopic\"><a/></li>").children().last().select("a").first().text(name).attr("href", "#" + anchor);
                } else if(!name.startsWith("Table") && tag.equals("h3")){
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 05:15:02 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top