- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 180 for Tperm (0.07 sec)
-
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/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) -
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) -
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) -
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) -
tensorflow/compiler/mlir/lite/utils/utils.td
// Returns a ShapedType for a permutation and the shape of input after // applying the permutation to the given shape through a transpose. class GetTransposedType<string perm> : NativeCodeCall< "GetTransposedType($0, " # perm # ")">; // Function to map final permutation to initial permutation // initial -> permutation1 -> permutation2 -> final def RemapPermutation: NativeCodeCall<"RemapPermutation($0, $1)">;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 4.8K bytes - Viewed (0) -
src/math/rand/rand_test.go
fn func() int }{ {name: "Int31n", fn: func() int { return int(r.Int31n(int32(nfact))) }}, {name: "int31n", fn: func() int { return int(Int31nForTest(r, int32(nfact))) }}, {name: "Perm", fn: func() int { return encodePerm(r.Perm(n)) }}, {name: "Shuffle", fn: func() int { // Generate permutation using Shuffle. for i := range p { p[i] = i }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 16.9K bytes - Viewed (0) -
src/os/file.go
func Mkdir(name string, perm FileMode) error { longName := fixLongPath(name) e := ignoringEINTR(func() error { return syscall.Mkdir(longName, syscallMode(perm)) }) if e != nil { return &PathError{Op: "mkdir", Path: name, Err: e} } // mkdir(2) itself won't handle the sticky bit on *BSD and Solaris if !supportsCreateWithStickyBit && perm&ModeSticky != 0 { e = setStickyBit(name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:37 UTC 2024 - 25.4K bytes - Viewed (0) -
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) -
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)