Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 275 for asSlice (0.28 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/tf_data_fuse_map_and_batch.mlir

      // CHECK: %[[NPC:.*]] = "tf.Const"() <{value = dense<1> : tensor<i64>}>
      // CHECK: %[[TSLICE:.*]] = "tf.TensorSliceDataset"
      %3 = "tf.TensorSliceDataset"(%2) {device = "", output_shapes = [#tf_type.shape<>], metadata = ""} : (tensor<3xi32>) -> tensor<*x!tf_type.variant>
      // CHECK: "tf.MapAndBatchDataset"(%[[TSLICE]], %[[BSIZE:.*]], %[[NPC]]
      // CHECK-SAME: f = @"__inference_Dataset_map_<lambda>_80",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_security/test_tutorial003_an.py

        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "Bearer"
    
    
    def test_inactive_user():
        response = client.get("/users/me", headers={"Authorization": "Bearer alice"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "Inactive user"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. tests/associations_belongs_to_test.go

    		&Company{Name: "company-slice-append-1"},
    		&Company{Name: "company-slice-append-2"},
    		&Company{Name: "company-slice-append-3"},
    	)
    
    	AssertAssociationCount(t, users, "Company", 3, "After Append")
    
    	DB.Model(&users).Association("Manager").Append(
    		GetUser("manager-slice-belongs-to-1", Config{}),
    		GetUser("manager-slice-belongs-to-2", Config{}),
    		GetUser("manager-slice-belongs-to-3", Config{}),
    	)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/go1_19_20.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Check Go language version-specific errors.
    
    //go:build go1.20
    
    package p
    
    type Slice []byte
    type Array [8]byte
    
    var s Slice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 16:08:31 UTC 2023
    - 332 bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/go1_19.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Check Go language version-specific errors.
    
    package p
    
    type Slice []byte
    type Array [8]byte
    
    var s Slice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 343 bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/go1_21_19.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Check Go language version-specific errors.
    
    //go:build go1.19
    
    package p
    
    type Slice []byte
    type Array [8]byte
    
    var s Slice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 16:08:31 UTC 2023
    - 362 bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go

    //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
    //sys	setfsgid(gid int) (prev int, err error)
    //sys	setfsuid(uid int) (prev int, err error)
    //sys	Shutdown(fd int, how int) (err error)
    //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
    
    func Stat(path string, stat *Stat_t) (err error) {
    	// Use fstatat, because Android's seccomp policy blocks stat.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. src/runtime/metrics/sample.go

    }
    
    // Implemented in the runtime.
    func runtime_readMetrics(unsafe.Pointer, int, int)
    
    // Read populates each [Value] field in the given slice of metric samples.
    //
    // Desired metrics should be present in the slice with the appropriate name.
    // The user of this API is encouraged to re-use the same slice between calls for
    // efficiency, but is not required to do so.
    //
    // Note that re-use has some caveats. Notably, Values should not be read or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. pilot/pkg/util/network/ip.go

    	return resolvedAddr, nil
    }
    
    // AllIPv6 checks the addresses slice and returns true if all addresses
    // are valid IPv6 address, for all other cases it returns false.
    func AllIPv6(ipAddrs []string) bool {
    	for i := 0; i < len(ipAddrs); i++ {
    		addr, err := netip.ParseAddr(ipAddrs[i])
    		if err != nil {
    			// Should not happen, invalid IP in proxy's IPAddresses slice should have been caught earlier,
    			// skip it to prevent a panic.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 21:27:21 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  10. src/slices/sort_benchmark_test.go

    					return n
    				}
    				return cmp.Compare(a.n, b.n)
    			}
    			// Presort the slice so all benchmark iterations are identical.
    			slices.SortFunc(structs, cmpFunc)
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				// Sort the slice twice because slices.SortFunc modifies the slice in place.
    				slices.SortFunc(structs, func(a, b *myStruct) int { return cmpFunc(b, a) })
    				slices.SortFunc(structs, cmpFunc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top