Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 547 for elem4 (0.2 sec)

  1. src/cmd/compile/internal/types/size.go

    	case TARRAY:
    		if t.Elem() == nil {
    			break
    		}
    
    		CalcSize(t.Elem())
    		t.SetNotInHeap(t.Elem().NotInHeap())
    		if t.Elem().width != 0 {
    			cap := (uint64(MaxWidth) - 1) / uint64(t.Elem().width)
    			if uint64(t.NumElem()) > cap {
    				base.Errorf("type %L larger than address space", t)
    			}
    		}
    		w = t.NumElem() * t.Elem().width
    		t.align = t.Elem().align
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. test/typeparam/orderedmap.go

    // the receiver stops reading them.
    func _Ranger[Elem any]() (*_Sender[Elem], *_Receiver[Elem]) {
    	c := make(chan Elem)
    	d := make(chan struct{})
    	s := &_Sender[Elem]{
    		values: c,
    		done:   d,
    	}
    	r := &_Receiver[Elem]{
    		values: c,
    		done:   d,
    	}
    	runtime.SetFinalizer(r, (*_Receiver[Elem]).finalize)
    	return s, r
    }
    
    // A _Sender is used to send values to a Receiver.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/index.go

    			case *Array:
    				l = t.len
    				e = t.elem
    				if x.mode != variable {
    					mode = value
    				}
    			case *Pointer:
    				if t, _ := under(t.base).(*Array); t != nil {
    					l = t.len
    					e = t.elem
    				}
    			case *Slice:
    				e = t.elem
    			case *Map:
    				k = t.key
    				e = t.elem
    			}
    			if e == nil {
    				return false
    			}
    			if elem == nil {
    				// first type
    				length = l
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  4. src/go/types/subst.go

    			return subst.check.newAliasInstance(subst.pos, t.orig, targs, subst.ctxt)
    		}
    
    	case *Array:
    		elem := subst.typOrNil(t.elem)
    		if elem != t.elem {
    			return &Array{len: t.len, elem: elem}
    		}
    
    	case *Slice:
    		elem := subst.typOrNil(t.elem)
    		if elem != t.elem {
    			return &Slice{elem: elem}
    		}
    
    	case *Struct:
    		if fields, copied := subst.varList(t.fields); copied {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. src/internal/reflectlite/set_test.go

    func (mapError) Error() string { return "mapError" }
    
    var _ error = mapError{}
    var _ error = new(mapError)
    
    func TestImplements(t *testing.T) {
    	for _, tt := range implementsTests {
    		xv := TypeOf(tt.x).Elem()
    		xt := TypeOf(tt.t).Elem()
    		if b := xv.Implements(xt); b != tt.b {
    			t.Errorf("(%s).Implements(%s) = %v, want %v", TypeString(xv), TypeString(xt), b, tt.b)
    		}
    	}
    }
    
    var assignableTests = []struct {
    	x any
    	t any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/stack_ops_decomposition.mlir

        // CHECK: "tf.AssignVariableOp"(%[[BUFFER]], %[[UPDATE]])
        // CHECK: "tf.AssignVariableOp"(%[[SIZE]]
         %push = "tf.StackPushV2"(%stack, %elem) {swap_memory = false} : (tensor<!tf_type.resource>, tensor<f32>) -> tensor<f32>
        "tf.Yield"(%elem) : (tensor<f32>) -> ()
      }, {
        %elem = "tf._SomeOtherOp"() : () -> tensor<f32>
        // CHECK-NOT: tf.StackPushV2
        // CHECK: %[[BUFFER_VAL:.*]] = "tf.ReadVariableOp"(%[[BUFFER]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/temp.go

    // allocated temporary variable of type [len]elem. This variable is
    // initialized, and elem must not contain pointers.
    func stackBufAddr(len int64, elem *types.Type) *ir.AddrExpr {
    	if elem.HasPointers() {
    		base.FatalfAt(base.Pos, "%v has pointers", elem)
    	}
    	tmp := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(elem, len))
    	return typecheck.Expr(typecheck.NodAddr(tmp)).(*ir.AddrExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. src/go/types/index.go

    			case *Array:
    				l = t.len
    				e = t.elem
    				if x.mode != variable {
    					mode = value
    				}
    			case *Pointer:
    				if t, _ := under(t.base).(*Array); t != nil {
    					l = t.len
    					e = t.elem
    				}
    			case *Slice:
    				e = t.elem
    			case *Map:
    				k = t.key
    				e = t.elem
    			}
    			if e == nil {
    				return false
    			}
    			if elem == nil {
    				// first type
    				length = l
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/range.go

    		if nn := arrayRangeClear(nrange, v1, v2, a); nn != nil {
    			base.Pos = lno
    			return nn
    		}
    
    		// Element type of the iteration
    		var elem *types.Type
    		switch t.Kind() {
    		case types.TSLICE, types.TARRAY:
    			elem = t.Elem()
    		case types.TPTR:
    			elem = t.Elem().Elem()
    		}
    
    		// order.stmt arranged for a copy of the array/slice variable if needed.
    		ha := a
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  10. tensorflow/cc/framework/ops.cc

      size_t offset = 0;
      for (auto const& e : v) {
        Tensor elem = e.tensor;
        if (first.tensor.dtype() == DT_STRING) {
          for (int i = 0; i < elem.NumElements(); ++i) {
            t.flat<tstring>()(offset + i) = elem.flat<tstring>()(i);
          }
          offset += elem.NumElements();
        } else {
          std::copy_n(elem.tensor_data().data(), elem.TotalBytes(),
                      const_cast<char*>(t.tensor_data().data()) + offset);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 3.5K bytes
    - Viewed (0)
Back to top