Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for fSlice (0.26 sec)

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

    }
    
    // fields is a pointer to a slice of *Field.
    // This saves space in Types that do not have fields or methods
    // compared to a simple slice of *Field.
    type fields struct {
    	s *[]*Field
    }
    
    // Slice returns the entries in f as a slice.
    // Changes to the slice entries will be reflected in f.
    func (f *fields) Slice() []*Field {
    	if f.s == nil {
    		return nil
    	}
    	return *f.s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  2. src/fmt/fmt_test.go

    }
    
    func TestSlicePrinter(t *testing.T) {
    	slice := []int{}
    	s := Sprint(slice)
    	if s != "[]" {
    		t.Errorf("empty slice printed as %q not %q", s, "[]")
    	}
    	slice = []int{1, 2, 3}
    	s = Sprint(slice)
    	if s != "[1 2 3]" {
    		t.Errorf("slice: got %q expected %q", s, "[1 2 3]")
    	}
    	s = Sprint(&slice)
    	if s != "&[1 2 3]" {
    		t.Errorf("&slice: got %q expected %q", s, "&[1 2 3]")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  3. src/text/template/exec_test.go

    	// Slicing.
    	{"slice[:]", "{{slice .SI}}", "[3 4 5]", tVal, true},
    	{"slice[1:]", "{{slice .SI 1}}", "[4 5]", tVal, true},
    	{"slice[1:2]", "{{slice .SI 1 2}}", "[4]", tVal, true},
    	{"slice[-1:]", "{{slice .SI -1}}", "", tVal, false},
    	{"slice[1:-2]", "{{slice .SI 1 -2}}", "", tVal, false},
    	{"slice[1:2:-1]", "{{slice .SI 1 2 -1}}", "", tVal, false},
    	{"slice[2:1]", "{{slice .SI 2 1}}", "", tVal, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tensor_array_ops_decomposition.mlir

      // CHECK: %[[SLICE:.*]] = "tf.Slice"
      // CHECK: %[[ELEM_SHAPE:.*]] = "tf.Const"() <{value = dense<3> : tensor<1xi32>}>
      // CHECK: %[[ELEM:.*]] = "tf.Reshape"(%[[SLICE]], %[[ELEM_SHAPE]])
      %val = "tf.TensorArrayReadV3"(%ta#0, %index, %ta#1) : (tensor<!tf_type.resource<tensor<*xf32>>>, tensor<i32>, tensor<f32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 49K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/regalloc.go

    func (e *edgeState) processDest(loc Location, vid ID, splice **Value, pos src.XPos) bool {
    	pos = pos.WithNotStmt()
    	occupant := e.contents[loc]
    	if occupant.vid == vid {
    		// Value is already in the correct place.
    		e.contents[loc] = contentRecord{vid, occupant.c, true, pos}
    		if splice != nil {
    			(*splice).Uses--
    			*splice = occupant.c
    			occupant.c.Uses++
    		}
    		// Note: if splice==nil then c will appear dead. This is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
  6. pkg/proxy/endpointschangetracker_test.go

    	"k8s.io/utils/ptr"
    )
    
    func (proxier *FakeProxier) addEndpointSlice(slice *discovery.EndpointSlice) {
    	proxier.endpointsChanges.EndpointSliceUpdate(slice, false)
    }
    
    func (proxier *FakeProxier) updateEndpointSlice(oldSlice, slice *discovery.EndpointSlice) {
    	proxier.endpointsChanges.EndpointSliceUpdate(slice, false)
    }
    
    func (proxier *FakeProxier) deleteEndpointSlice(slice *discovery.EndpointSlice) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 79.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    	}
    	RtlInitUnicodeString(&u, s16)
    	return &u, nil
    }
    
    // Slice returns a uint16 slice that aliases the data in the NTUnicodeString.
    func (s *NTUnicodeString) Slice() []uint16 {
    	slice := unsafe.Slice(s.Buffer, s.MaximumLength)
    	return slice[:s.Length]
    }
    
    func (s *NTUnicodeString) String() string {
    	return UTF16ToString(s.Slice())
    }
    
    // NewNTString returns a new NTString structure for use with native
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        }
      }
    
      // This function rewrites the original op into a series of slice and concat op
      // to produce the same result. It first slices the first `$index` rows. Then
      // expands the dimension of the `$item`, followed by another slice of the
      // remaining rows starting from `$index` + 1. Lastly it concatenates the
      // three parts together.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_messages.go

    	x[5] = uint8(certificateOctets >> 8)
    	x[6] = uint8(certificateOctets)
    
    	y := x[7:]
    	for _, slice := range m.certificates {
    		y[0] = uint8(len(slice) >> 16)
    		y[1] = uint8(len(slice) >> 8)
    		y[2] = uint8(len(slice))
    		copy(y[3:], slice)
    		y = y[3+len(slice):]
    	}
    
    	return x, nil
    }
    
    func (m *certificateMsg) unmarshal(data []byte) bool {
    	if len(data) < 7 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  10. src/encoding/json/decode_test.go

    	Map   map[string]Small
    	MapP  map[string]*Small
    	PMap  *map[string]Small
    	PMapP *map[string]*Small
    
    	EmptyMap map[string]Small
    	NilMap   map[string]Small
    
    	Slice   []Small
    	SliceP  []*Small
    	PSlice  *[]Small
    	PSliceP *[]*Small
    
    	EmptySlice []Small
    	NilSlice   []Small
    
    	StringSlice []string
    	ByteSlice   []byte
    
    	Small   Small
    	PSmall  *Small
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
Back to top