- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 689 for Perm (0.04 sec)
-
src/runtime/create_file_nounix.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !unix package runtime const canCreateFile = false func create(name *byte, perm int32) int32 { throw("unimplemented") return -1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 03:45:30 UTC 2022 - 305 bytes - Viewed (0) -
src/internal/coverage/pods/pods_test.go
"os" "path/filepath" "runtime" "testing" ) func TestPodCollection(t *testing.T) { //testenv.MustHaveGoBuild(t) mkdir := func(d string, perm os.FileMode) string { dp := filepath.Join(t.TempDir(), d) if err := os.Mkdir(dp, perm); err != nil { t.Fatal(err) } return dp } mkfile := func(d string, fn string) string { fp := filepath.Join(d, fn)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 31 14:00:17 UTC 2023 - 3.5K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/lockedfile_plan9.go
func isLocked(err error) bool { s := err.Error() for _, frag := range lockedErrStrings { if strings.Contains(s, frag) { return true } } return false } func openFile(name string, flag int, perm fs.FileMode) (*os.File, error) { // Plan 9 uses a mode bit instead of explicit lock/unlock syscalls. // // Per http://man.cat-v.org/plan_9/5/stat: “Exclusive use files may be open
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 2.5K bytes - Viewed (0) -
cmd/os_other.go
import ( "io" "os" "syscall" ) func access(name string) error { _, err := os.Lstat(name) return err } func osMkdirAll(dirPath string, perm os.FileMode, _ string) error { // baseDir is not honored in plan9 and solaris platforms. return os.MkdirAll(dirPath, perm) } // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Sep 13 15:14:36 UTC 2023 - 4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/transpose-op.mlir
%1 = "tf.Const"() {value = dense<[0, 0x4141, 3, 1]> : tensor<4xi32>} : () -> tensor<4xi32> %2 = "tf.Transpose"(%arg0, %0) : (tensor<1x4x4x8xf32>, tensor<4xi32>) -> tensor<1x8x4x4xf32> // expected-error @+1 {{'tf.Transpose' op perm[1]=16705 must be in range [-4, 4)}} %3 = "tf.Transpose"(%2, %1) : (tensor<1x8x4x4xf32>, tensor<4xi32>) -> tensor<1x4x4x8xf32> func.return %3 : tensor<1x4x4x8xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 23 05:52:37 UTC 2023 - 634 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/utils.h
for (int32_t idx = 0; idx < perm1_const.getNumElements(); ++idx) { initial_permutation.push_back(idx); } for (auto perm : perm2_const.getValues<APInt>()) { new_permutation.push_back( initial_permutation[perm1_const .getValues<APInt>()[perm.getSExtValue()] .getSExtValue()]); } } return mlir::DenseElementsAttr::get(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 11.6K bytes - Viewed (0) -
src/math/rand/race_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 28 16:06:21 UTC 2021 - 1.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/bench_test.go
//go:noinline func fn(a, b int) bool { c := false if a > 0 { if b < 0 { d = d + 1 } c = true } return c } func BenchmarkPhioptPass(b *testing.B) { for i := 0; i < b.N; i++ { a := rand.Perm(i/10 + 10) for i := 1; i < len(a)/2; i++ { fn(a[i]-a[i-1], a[i+len(a)/2-2]-a[i+len(a)/2-1]) } } } type Point struct { X, Y int } //go:noinline func sign(p1, p2, p3 Point) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 21 02:36:06 UTC 2023 - 835 bytes - Viewed (0) -
src/cmd/gofmt/gofmt_unix_test.go
"strings" "testing" "time" ) func TestPermissions(t *testing.T) { if os.Getuid() == 0 { t.Skip("skipping permission test when running as root") } dir := t.TempDir() fn := filepath.Join(dir, "perm.go") // Create a file that needs formatting without write permission. if err := os.WriteFile(filepath.Join(fn), []byte(" package main"), 0o400); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 18 12:52:14 UTC 2023 - 1.4K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_unsupported.go
return subPath.Path, nil, errUnsupported } func (sp *subpath) CleanSubPaths(podDir string, volumeName string) error { return errUnsupported } func (sp *subpath) SafeMakeDir(pathname string, base string, perm os.FileMode) error { return errUnsupported
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 1.5K bytes - Viewed (0)