- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for permutation (0.16 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc
Type ShuffleRankedTensorType(Type type, ArrayRef<int64_t> permutation) { if (auto ranked_type = mlir::dyn_cast<RankedTensorType>(type)) { ArrayRef<int64_t> shape = ranked_type.getShape(); assert(permutation.size() == shape.size()); SmallVector<int64_t, 4> new_shape(permutation.size()); for (size_t i = 0; i < permutation.size(); ++i) new_shape[i] = shape[permutation[i]];
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc
permutation_(permutation) {} // Transposes `values` with the permutation. Returns the transposed values. SmallVector<float> TransposeValues(const ArrayRef<float> values) const { SmallVector<float> transposed_values(values.size()); SmallVector<int64_t> current_indices = {}; TransposeRecursively(values, transposed_values, current_indices); return transposed_values;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.7K 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/crypto/des/block.go
var feistelBox [8][64]uint32 var feistelBoxOnce sync.Once // general purpose function to perform DES block permutations. func permuteBlock(src uint64, permutation []uint8) (block uint64) { for position, n := range permutation { bit := (src >> n) & 1 block |= bit << uint((len(permutation)-1)-position) } return } func initFeistelBox() { for s := range sBoxes { for i := 0; i < 4; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 6.5K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/sha3/sha3.go
// If we're absorbing, we need to xor the input into the state // before applying the permutation. xorIn(d, d.storage[:d.rate]) d.n = 0 keccakF1600(&d.a) case spongeSqueezing: // If we're squeezing, we need to apply the permutation before // copying more output. keccakF1600(&d.a) d.i = 0 copyOut(d, d.storage[:d.rate]) } } // pads appends the domain separation bits in dsbyte, applies
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.4K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/sha3/doc.go
// A sponge builds a pseudo-random function from a public pseudo-random // permutation, by applying the permutation to a state of "rate + capacity" // bytes, but hiding "capacity" of the bytes. // // A sponge starts out with a zero state. To hash an input using a sponge, up // to "rate" bytes of the input are XORed into the sponge's state. The sponge // is then "full" and the permutation is applied to "empty" it. This process is
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 10 16:37:53 UTC 2024 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/nchw_convolution_to_nhwc.cc
// Returns a new tensor type with the shape transposed according to the // permutation. The rank of `type` and the size of `permutation` must be // equal. TensorType GetTransposedTensorType( const TensorType type, const ArrayRef<int64_t> permutation) const { const SmallVector<int64_t> after_shape = Permute<int64_t>(type.getShape(), permutation); return type.cloneWith(after_shape, type.getElementType()); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc
// Create a 1D I32 tensor for representing the dimension permutation. auto permuation_tensor_type = RankedTensorType::get({input_rank}, rewriter.getIntegerType(32)); llvm::SmallVector<Attribute, 4> permute; permute.reserve(input_rank); // First create an identity permutation tensor. for (int i = 0; i < input_rank; i++) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.6K bytes - Viewed (0) -
pkg/config/analysis/analyzers/webhook/webhook.go
for rev := range revisions { for _, base := range getObjectLabels() { base[label.IoIstioRev.Name] = rev objectLabels = append(objectLabels, base) } } // For each permutation, we check which webhooks it matches. It must match exactly 0 or 1! for _, nl := range namespaceLabels { for _, ol := range objectLabels { matches := sets.New[string]() for name, whs := range webhooks {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun May 05 03:44:57 UTC 2024 - 6K bytes - Viewed (0) -
src/io/pipe_test.go
t.Errorf("Write() = (%d, %v); want (%d, nil)", n, err, len(input)) } } // Since each read is independent, the only guarantee about the output // is that it is a permutation of the input in readSized groups. got := make([]byte, 0, count*len(input)) for i := 0; i < cap(c); i++ { got = append(got, (<-c)...) } got = sortBytesInGroups(got, readSize)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9K bytes - Viewed (0)