Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 339 for attr_ (0.04 sec)

  1. 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)
  2. tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.cc

        Attribute real_value) {
      if (auto attr = dyn_cast<DenseFPElementsAttr>(real_value)) {
        return convert(attr);
      }
      return nullptr;
    }
    
    DenseElementsAttr UniformQuantizedPerAxisValueConverter::convert(
        DenseFPElementsAttr attr) {
      // Creates the converter for each chunk. Normally the size of the
      // quantization dim is 3, so we can cache all the converters.
      ShapedType type = attr.getType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 4.3K 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. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    						// t must be an empty interface. So it can also be an Attr.
    						// We don't know enough to make an assumption.
    						pos = unknown
    						continue
    					} else if attrType != nil && types.AssignableTo(attrType, t) {
    						// Assume it is an Attr.
    						pos = key
    						continue
    					}
    					// Can't be either a string or Attr. Definitely an error.
    					fallthrough
    				default:
    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. 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. tensorflow/compiler/aot/aot_only_var_handle_op.cc

    REGISTER_OP(tfcompile::kXlaAotOnlyVarHandleOp)
        .Doc(R"doc(
    Internal VarHandleOp registration used for XLA AOT compilation.
    )doc")
        .Attr("container: string = ''")
        .Attr("shared_name: string = ''")
        .Attr("debug_name: string = ''")
        .Attr("dtype: type")
        .Attr("shape: shape")
        .Output("resource: resource")
        .SetIsStateful()
        .SetShapeFn([](shape_inference::InferenceContext* c) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 09:57:04 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top