Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 403 for Tperm (0.12 sec)

  1. src/math/rand/rand.go

    	}
    	return f
    }
    
    // Perm returns, as a slice of n ints, a pseudo-random permutation of the integers
    // in the half-open interval [0,n).
    func (r *Rand) Perm(n int) []int {
    	m := make([]int, n)
    	// In the following loop, the iteration when i=0 always swaps m[0] with m[0].
    	// A change to remove this useless iteration is to assign 1 to i in the init
    	// statement. But Perm also effects r. Making this change will affect
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize.cc

      bool TransposeFirstTwoDimToLast(DenseIntElementsAttr perm) const {
        int rank = perm.getNumElements();
        if (rank < 3) return false;
        for (int i = 0; i < rank - 2; i++) {
          if (perm.getValues<APInt>()[i] != i + 2) {
            return false;
          }
        }
        return perm.getValues<APInt>()[rank - 2] == 0 &&
               perm.getValues<APInt>()[rank - 1] == 1;
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  3. pkg/kubelet/certificate/kubelet_test.go

    			}
    		})
    	}
    }
    
    func removeThenCreate(name string, data []byte, perm os.FileMode) error {
    	if err := os.Remove(name); err != nil {
    		if !os.IsNotExist(err) {
    			return err
    		}
    	}
    	return os.WriteFile(name, data, perm)
    }
    
    func createCertAndKeyFiles(certDir string) (string, string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:40 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. pkg/util/filesystem/filesystem.go

    type Filesystem interface {
    	// from "os"
    	Stat(name string) (os.FileInfo, error)
    	Create(name string) (File, error)
    	Rename(oldpath, newpath string) error
    	MkdirAll(path string, perm os.FileMode) error
    	Chtimes(name string, atime time.Time, mtime time.Time) error
    	RemoveAll(path string) error
    	Remove(name string) error
    
    	// from "os"
    	ReadFile(filename string) ([]byte, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 13 01:02:46 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/etcd3/preflight/checks.go

    // can be reached, return true.
    func (con EtcdConnection) CheckEtcdServers() (done bool, err error) {
    	// Attempt to reach every Etcd server randomly.
    	serverNumber := len(con.ServerList)
    	serverPerms := rand.Perm(serverNumber)
    	for _, index := range serverPerms {
    		host, err := parseServerURI(con.ServerList[index])
    		if err != nil {
    			return false, err
    		}
    		if con.serverReachable(host) {
    			return true, nil
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 20 10:50:48 UTC 2018
    - 1.8K bytes
    - Viewed (0)
  6. src/syscall/zerrors_windows.go

    	ENOSR
    	ENOSTR
    	ENOSYS
    	ENOTBLK
    	ENOTCONN
    	ENOTEMPTY
    	ENOTNAM
    	ENOTRECOVERABLE
    	ENOTSOCK
    	ENOTSUP
    	ENOTTY
    	ENOTUNIQ
    	ENXIO
    	EOPNOTSUPP
    	EOVERFLOW
    	EOWNERDEAD
    	EPERM
    	EPFNOSUPPORT
    	EPIPE
    	EPROTO
    	EPROTONOSUPPORT
    	EPROTOTYPE
    	ERANGE
    	EREMCHG
    	EREMOTE
    	EREMOTEIO
    	ERESTART
    	EROFS
    	ESHUTDOWN
    	ESOCKTNOSUPPORT
    	ESPIPE
    	ESRCH
    	ESRMNT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 14 13:21:46 UTC 2018
    - 10K bytes
    - Viewed (0)
  7. pkg/volume/fc/fc_util.go

    }
    func (handler *osIOHandler) EvalSymlinks(path string) (string, error) {
    	return filepath.EvalSymlinks(path)
    }
    func (handler *osIOHandler) WriteFile(filename string, data []byte, perm os.FileMode) error {
    	return ioutil.WriteFile(filename, data, perm)
    }
    
    // given a wwn and lun, find the device and associated devicemapper parent
    func findDisk(wwn, lun string, io ioHandler, deviceUtil volumeutil.DeviceUtil) (string, string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.8K bytes
    - Viewed (0)
  8. pkg/volume/util/subpath/subpath_linux_test.go

    				}
    				actualMode := st.Mode()
    				if actualMode != test.perm {
    					if actualMode^test.perm == os.ModeSetgid && test.perm&os.ModeSetgid == 0 {
    						// when TMPDIR is a kubernetes emptydir, the sticky gid bit is set due to fsgroup
    						t.Logf("masking bit from %o", actualMode)
    					} else {
    						t.Errorf("expected permissions %o, got %o (%b)", test.perm, actualMode, test.perm^actualMode)
    					}
    				}
    			}
    		})
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 16:52:55 UTC 2021
    - 37.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/plan9/zsyscall_plan9_amd64.go

    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func create(path string, mode int, perm uint32) (fd int, err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(path)
    	if err != nil {
    		return
    	}
    	r0, _, e1 := Syscall(SYS_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
    	fd = int(r0)
    	if int32(r0) == -1 {
    		err = e1
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. src/syscall/zsyscall_plan9_386.go

    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func create(path string, mode int, perm uint32) (fd int, err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(path)
    	if err != nil {
    		return
    	}
    	r0, _, e1 := Syscall(SYS_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
    	fd = int(r0)
    	if int32(r0) == -1 {
    		err = e1
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 6.2K bytes
    - Viewed (0)
Back to top