Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 277 for Tperm (0.05 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/os/removeall_at.go

    	}
    
    	// EISDIR means that we have a directory, and we need to
    	// remove its contents.
    	// EPERM or EACCES means that we don't have write permission on
    	// the parent directory, but this entry might still be a directory
    	// whose contents need to be removed.
    	// Otherwise just return the error.
    	if err != syscall.EISDIR && err != syscall.EPERM && err != syscall.EACCES {
    		return &PathError{Op: "unlinkat", Path: base, Err: err}
    	}
    	uErr := err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

            return transpose_op.emitOpError(
                "perm tensor elements size is not equal to input tensor rank");
          }
        }
    
        // Get permutation axes of the TransposeOp
        DenseIntElementsAttr perm;
        if (!matchPattern(transpose_op.getPerm(), m_Constant(&perm))) {
          return failure();
        }
    
        SmallVector<int64_t, 4> axes;
        for (const auto& axis_int : perm.getValues<APInt>()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. src/math/rand/v2/race_test.go

    				seed += int64(IntN(Int()))
    				seed += int64(Int32N(Int32()))
    				seed += int64(Int64N(Int64()))
    				seed += int64(NormFloat64())
    				seed += int64(Uint32())
    				seed += int64(Uint64())
    				for _, p := range Perm(10) {
    					seed += int64(p)
    				}
    			}
    			_ = seed
    		}(i)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 14:31:46 UTC 2023
    - 1005 bytes
    - Viewed (0)
  7. src/math/rand/v2/rand.go

    // from the default Source.
    func Float32() float32 { return globalRand.Float32() }
    
    // Perm returns, as a slice of n ints, a pseudo-random permutation of the integers
    // in the half-open interval [0,n) from the default Source.
    func Perm(n int) []int { return globalRand.Perm(n) }
    
    // Shuffle pseudo-randomizes the order of elements using the default Source.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/layout_optimization_move_transposes_end.mlir

    func.func @fold_into_pad_with_extra_uses(%arg0: tensor<1x2x4x4x3xf32>) -> (tensor<1x2x3x4x4xf32>, tensor<1x2x3x6x6xf32>) {
    
      // CHECK: %[[PERM:.*]] = "tf.Const"() <{value = dense<[0, 1, 4, 2, 3]> : tensor<5xi32>}>
      // CHECK: %[[TRANSPOSE_OP:[0-9]*]] = "tf.Transpose"(%arg0, %[[PERM]])
      // CHECK: %[[PADDING:.*]] = "tf.Const"() <{value = dense<{{\[\[}}0, 0], [0, 0], [1, 1], [1, 1], [0, 0]]> : tensor<5x2xi32>}>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  9. cmd/os_windows.go

    	"os"
    	"path/filepath"
    	"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 windows platform
    	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 Oct 18 18:08:15 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  10. src/runtime/stubs2.go

    // It returns a non-negative number of bytes written or a negative errno value.
    //
    //go:noescape
    func write1(fd uintptr, p unsafe.Pointer, n int32) int32
    
    //go:noescape
    func open(name *byte, mode, perm int32) int32
    
    // return value is only set on linux to be used in osinit().
    func madvise(addr unsafe.Pointer, n uintptr, flags int32) int32
    
    // exitThread terminates the current thread, writing *wait = freeMStack when
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top