Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 310 for attr_ (0.07 sec)

  1. tensorflow/c/c_test_util.cc

      bool found_value = false;
      for (const auto& attr : node_def.attr()) {
        if (attr.first == "dtype") {
          if (attr.second.type() == tensorflow::DT_INT32) {
            found_dtype = true;
          } else {
            return false;
          }
        } else if (attr.first == "value") {
          if (attr.second.has_tensor() &&
              attr.second.tensor().int_val_size() == 1 &&
              attr.second.tensor().int_val(0) == v) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  2. src/runtime/os2_aix.go

    // Therefore, err returns by syscall means nothing and must not be used
    
    //go:nosplit
    func pthread_attr_destroy(attr *pthread_attr) int32 {
    	r, _ := syscall1(&libpthread_attr_destroy, uintptr(unsafe.Pointer(attr)))
    	return int32(r)
    }
    
    func pthread_attr_init1(attr uintptr) int32
    
    //go:nosplit
    func pthread_attr_init(attr *pthread_attr) int32 {
    	gp := getg()
    
    	// Check the validity of g because without a g during
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  3. src/encoding/xml/marshal.go

    func (p *printer) marshalAttr(start *StartElement, name Name, val reflect.Value) error {
    	if val.CanInterface() && val.Type().Implements(marshalerAttrType) {
    		attr, err := val.Interface().(MarshalerAttr).MarshalXMLAttr(name)
    		if err != nil {
    			return err
    		}
    		if attr.Name.Local != "" {
    			start.Attr = append(start.Attr, attr)
    		}
    		return nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  4. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/configurations/renderer/ConsoleConfigurationReportRenderer.java

                Integer max = attributes.stream().map(attr -> attr.getName().length()).max(Integer::compare).orElse(0);
                printSection("Attributes", () -> attributes.forEach(attr -> writeAttribute(max, attr, false)));
            }
        }
    
        private void writeAttribute(Integer max, ReportAttribute attr, boolean includePrecedence) {
            indent(true);
            if (attr.getValue().isPresent()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 12 16:17:12 UTC 2022
    - 18.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go

    				return
    			}
    
    			var attr admission.Attributes
    			if tt.IsCRD {
    				attr = webhooktesting.NewAttributeUnstructured(ns, tt.AdditionalLabels, tt.IsDryRun)
    			} else {
    				attr = webhooktesting.NewAttribute(ns, tt.AdditionalLabels, tt.IsDryRun)
    			}
    
    			b.ResetTimer()
    			b.RunParallel(func(pb *testing.PB) {
    				for pb.Next() {
    					wh.Admit(context.TODO(), attr, objectInterfaces)
    				}
    			})
    		})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/runtime/os3_solaris.go

    }
    
    func pthread_attr_setdetachstate(attr *pthreadattr, state int32) int32 {
    	return int32(sysvicall2(&libc_pthread_attr_setdetachstate, uintptr(unsafe.Pointer(attr)), uintptr(state)))
    }
    
    func pthread_attr_setstack(attr *pthreadattr, addr uintptr, size uint64) int32 {
    	return int32(sysvicall3(&libc_pthread_attr_setstack, uintptr(unsafe.Pointer(attr)), uintptr(addr), uintptr(size)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. src/syscall/exec_plan9.go

    }
    
    var zeroProcAttr ProcAttr
    var zeroSysProcAttr SysProcAttr
    
    func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) {
    	var (
    		p      [2]int
    		n      int
    		errbuf [ERRMAX]byte
    		wmsg   Waitmsg
    	)
    
    	if attr == nil {
    		attr = &zeroProcAttr
    	}
    	sys := attr.Sys
    	if sys == nil {
    		sys = &zeroSysProcAttr
    	}
    
    	p[0] = -1
    	p[1] = -1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. tensorflow/c/kernels_experimental.cc

          elements_out(i) = elements_in(i);
        }
      } else {
        AllocatorAttributes attr;
        attr.set_gpu_compatible(true);
        attr.set_nic_compatible(true);
        TF_RETURN_IF_ERROR(context->allocate_temp(
            var->tensor()->dtype(), var->tensor()->shape(), &tmp, attr));
        tensorflow::Status s;
        TF_Tensor* tf_tmp = TF_TensorFromTensor(tmp, &s);
        TF_Tensor* tf_tensor = TF_TensorFromTensor(*var->tensor(), &s);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go

    	var relevantHooks []*generic.WebhookInvocation
    	// Construct all the versions we need to call our webhooks
    	versionedAttrAccessor := &versionedAttributeAccessor{
    		versionedAttrs:   map[schema.GroupVersionKind]*admission.VersionedAttributes{},
    		attr:             attr,
    		objectInterfaces: o,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 20:24:12 UTC 2023
    - 13K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

      f_name_attr.set_name(fd.signature().name());
      TF_ASSERT_OK(
          NodeBuilder("B", "StatefulPartitionedCall", &root.graph()->flib_def())
              .Input(inputs)
              .Attr("Tin", {DT_RESOURCE})
              .Attr("Tout", {DT_RESOURCE})
              .Attr("f", f_name_attr)
              .Finalize(root.graph(), &call));
      call->AddAttr(std::string(kMustCompileAttr), true);
    
      TF_ASSERT_OK(root.ToGraph(&graph));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top