Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 368 for elemOp (0.1 sec)

  1. src/encoding/gob/decode.go

    	for i := 0; i < n; i++ {
    		key := decodeIntoValue(state, keyOp, keyIsPtr, keyP.Elem(), keyInstr)
    		elem := decodeIntoValue(state, elemOp, elemIsPtr, elemP.Elem(), elemInstr)
    		value.SetMapIndex(key, elem)
    		keyP.Elem().SetZero()
    		elemP.Elem().SetZero()
    	}
    }
    
    // ignoreArrayHelper does the work for discarding arrays and slices.
    func (dec *Decoder) ignoreArrayHelper(state *decoderState, elemOp decOp, length int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  2. src/encoding/gob/encode.go

    				state.enc.encodeArray(state.b, slice, *elemOp, elemIndir, slice.Len(), helper)
    			}
    		case reflect.Array:
    			// True arrays have size in the type.
    			elemOp, elemIndir := encOpFor(t.Elem(), inProgress, building)
    			helper := encArrayHelper[t.Elem().Kind()]
    			op = func(i *encInstr, state *encoderState, array reflect.Value) {
    				state.update(i)
    				state.enc.encodeArray(state.b, array, *elemOp, elemIndir, array.Len(), helper)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/cache/lruexpirecache_test.go

    	expectNotEntry(t, c, "elem2")
    	expectEntry(t, c, "elem1", "1")
    	expectEntry(t, c, "elem3", "3")
    	expectEntry(t, c, "elem4", "4")
    	expectEntry(t, c, "elem5", "5")
    }
    
    func TestLRUKeys(t *testing.T) {
    	c := NewLRUExpireCache(4)
    	c.Add("elem1", "1", 10*time.Hour)
    	c.Add("elem2", "2", 10*time.Hour)
    	c.Add("elem3", "3", 10*time.Hour)
    	c.Add("elem4", "4", 10*time.Hour)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/xla_broadcast.mlir

      // CHECK:      %[[ELEM_0:.*]] = "tf.Const"()
      // CHECK:      {ici_weight_distribution_mlir_bridge_marker = true}
      // CHECK-NEXT: %[[SHAPE_0:.*]] = "tf.Const"()
      // CHECK:      {ici_weight_distribution_mlir_bridge_marker = true}
      // CHECK-NEXT: %[[FULL_0:.*]] = "tf.Fill"(%[[SHAPE_0]], %[[ELEM_0]]) {ici_weight_distribution_mlir_bridge_marker = true}
      // CHECK:      %[[ELEM_1:.*]] = "tf.Const"()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. test/typeparam/sliceimp.dir/a.go

    }
    
    // Reduce reduces a []Elem1 to a single value of type Elem2 using
    // a reduction function.
    func Reduce[Elem1, Elem2 any](s []Elem1, initializer Elem2, f func(Elem2, Elem1) Elem2) Elem2 {
    	r := initializer
    	for _, v := range s {
    		r = f(r, v)
    	}
    	return r
    }
    
    // Filter filters values from a slice using a filter function.
    func Filter[Elem any](s []Elem, f func(Elem) bool) []Elem {
    	var r []Elem
    	for _, v := range s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 30 01:55:58 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  6. test/typeparam/slices.go

    	return r
    }
    
    // _Reduce reduces a []Elem1 to a single value of type Elem2 using
    // a reduction function.
    func _Reduce[Elem1, Elem2 any](s []Elem1, initializer Elem2, f func(Elem2, Elem1) Elem2) Elem2 {
    	r := initializer
    	for _, v := range s {
    		r = f(r, v)
    	}
    	return r
    }
    
    // _Filter filters values from a slice using a filter function.
    func _Filter[Elem any](s []Elem, f func(Elem) bool) []Elem {
    	var r []Elem
    	for _, v := range s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  7. src/internal/types/testdata/fixedbugs/issue44799.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func Map[F, T any](s []F, f func(F) T) []T { return nil }
    
    func Reduce[Elem1, Elem2 any](s []Elem1, initializer Elem2, f func(Elem2, Elem1) Elem2) Elem2 { var x Elem2; return x }
    
    func main() {
    	var s []int
    	var f1 func(int) float64
    	var f2 func(float64, int) float64
    	_ = Map[int](s, f1)
    	_ = Map(s, f1)
    	_ = Reduce[int](s, 0, f2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 530 bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/replicate-tensor-list-init-ops.mlir

        %idx = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32>
        %elem_1 = "tf.Const"() {value = dense<10.0> : tensor<8xf32>} : () -> tensor<8xf32>
        %tl_set_item = "tf.TensorListSetItem"(%tl, %idx, %elem_1) : (tensor<!tf_type.variant<tensor<*xf32>>>, tensor<i32>, tensor<8xf32>) -> tensor<!tf_type.variant<tensor<*xf32>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 03 09:30:08 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/replicate_tensor_list_init_ops.mlir

      %elem_1 = "tf._FirstOp"() : () -> tensor<8x1xf32>
      %tl_set_item = "tf.TensorListSetItem"(%tl, %one, %elem_1) : (tensor<!tf_type.variant<tensor<?x1xf32>>>, tensor<i32>, tensor<8x1xf32>) -> tensor<!tf_type.variant<tensor<?x1xf32>>>
      %elem_2 = "tf._SecondOp"() : () -> tensor<16x1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Jan 22 17:28:34 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  10. test/fixedbugs/issue17449.go

    package master
    
    type PriorityList struct {
        elems []interface{}
    }
    
    func (x *PriorityList) Len() int { return len(x.elems) }
    
    func (l *PriorityList) remove(i int) interface{} {
        elem := l.elems[i]
        l.elems = append(l.elems[:i], l.elems[i+1:]...)
        return elem
    }
    
    func (l *PriorityList) Next() interface{} {
        return l.remove(l.Len() - 1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top