Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 41 for Dtype (0.11 sec)

  1. tensorflow/c/c_api_function_test.cc

    #include "tensorflow/core/platform/strcat.h"
    #include "tensorflow/core/platform/test.h"
    
    namespace tensorflow {
    namespace {
    
    // Specification for expected input/output and its type.
    // DataType value of DT_INVALID signifies that we don't want to
    // check the data type.
    typedef std::pair<string, DataType> IOSpec;
    
    const char* kFeedStackToString = "File \"feed.cc\", line 10, in alpha";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

        if attr_val.HasField('s'):
          return '"{}"'.format(attr_val.s.decode())
        # type
        if attr_val.HasField('type'):
          if attr_val.type == types_pb2.DT_FLOAT:
            return 'f32'
          elif attr_val.type == types_pb2.DT_INT32:
            return 'i32'
          elif attr_val.type == types_pb2.DT_INT64:
            return 'i64'
          elif attr_val.type == types_pb2.DT_BOOL:
            return 'i1'
        # list
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/out.go

    func (p *Package) writeDefsFunc(fgo2 io.Writer, n *Name, callsMalloc *bool) {
    	name := n.Go
    	gtype := n.FuncType.Go
    	void := gtype.Results == nil || len(gtype.Results.List) == 0
    	if n.AddError {
    		// Add "error" to return type list.
    		// Type list is known to be 0 or 1 element - it's a C function.
    		err := &ast.Field{Type: ast.NewIdent("error")}
    		l := gtype.Results.List
    		if len(l) == 0 {
    			l = []*ast.Field{err}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/type.go

    }
    
    // Map contains Type fields specific to maps.
    type Map struct {
    	Key  *Type // Key type
    	Elem *Type // Val (elem) type
    
    	Bucket *Type // internal struct type representing a hash bucket
    }
    
    // MapType returns t's extra map-specific fields.
    func (t *Type) MapType() *Map {
    	t.wantEtype(TMAP)
    	return t.extra.(*Map)
    }
    
    // Forward contains Type fields specific to forward types.
    type Forward struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  5. src/reflect/type.go

    type rtype struct {
    	t abi.Type
    }
    
    func (t *rtype) common() *abi.Type {
    	return &t.t
    }
    
    func (t *rtype) uncommon() *abi.UncommonType {
    	return t.t.Uncommon()
    }
    
    type aNameOff = abi.NameOff
    type aTypeOff = abi.TypeOff
    type aTextOff = abi.TextOff
    
    // ChanDir represents a channel type's direction.
    type ChanDir int
    
    const (
    	RecvDir ChanDir             = 1 << iota // <-chan
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  6. src/runtime/mbitmap.go

    			// Allocate space to unroll the gcprog. This space will consist of
    			// a dummy _type value and the unrolled gcprog. The dummy _type will
    			// refer to the bitmap, and the mspan will refer to the dummy _type.
    			if span.spanclass.sizeclass() != 0 {
    				throw("GCProg for type that isn't large")
    			}
    			spaceNeeded := alignUp(unsafe.Sizeof(_type{}), goarch.PtrSize)
    			heapBitsOff := spaceNeeded
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  7. pkg/apis/batch/validation/validation.go

    		for _, cType := range []batch.JobConditionType{batch.JobFailed, batch.JobComplete, batch.JobFailureTarget} {
    			if IsConditionTrue(oldJob.Status.Conditions, cType) && !IsConditionTrue(job.Status.Conditions, cType) {
    				allErrs = append(allErrs, field.Invalid(statusFld.Child("conditions"), field.OmitValueType{}, fmt.Sprintf("cannot disable the terminal %s=True condition", string(cType))))
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 16:43:24 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/parser.go

    			if pname, ptype := extractName(x, p.tok == _Comma); pname != nil && (ptype != nil || p.tok != _Rbrack) {
    				// d.Name "[" pname ...
    				// d.Name "[" pname ptype ...
    				// d.Name "[" pname ptype "," ...
    				d.TParamList = p.paramList(pname, ptype, _Rbrack, true) // ptype may be nil
    				d.Alias = p.gotAssign()
    				d.Type = p.typeOrNil()
    			} else {
    				// d.Name "[" pname "]" ...
    				// d.Name "[" x ...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  9. src/runtime/malloc.go

    //   - github.com/v2pro/plz
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname reflect_unsafe_New reflect.unsafe_New
    func reflect_unsafe_New(typ *_type) unsafe.Pointer {
    	return mallocgc(typ.Size_, typ, true)
    }
    
    //go:linkname reflectlite_unsafe_New internal/reflectlite.unsafe_New
    func reflectlite_unsafe_New(typ *_type) unsafe.Pointer {
    	return mallocgc(typ.Size_, typ, true)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  10. pkg/controller/job/job_controller.go

    func ensureJobConditionStatus(list []batch.JobCondition, cType batch.JobConditionType, status v1.ConditionStatus, reason, message string, now time.Time) ([]batch.JobCondition, bool) {
    	if condition := findConditionByType(list, cType); condition != nil {
    		if condition.Status != status || condition.Reason != reason || condition.Message != message {
    			*condition = *newCondition(cType, status, reason, message, now)
    			return list, true
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
Back to top