- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for permutation (0.34 sec)
-
tensorflow/compiler/mlir/lite/utils/utils.h
mlir::IntegerType::get(permutation1.getContext(), 32)), llvm::ArrayRef(new_permutation)); } // Utility function to map final permutation to initial permutation // initial -> permutation1 -> permutation2 -> final inline DenseElementsAttr RemapPermutation(Value permutation1, Value permutation2) { DenseElementsAttr perm2_const;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 11.6K bytes - Viewed (0) -
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/tensorflow/transforms/layout_optimization.cc
} } // Revert the permutation applied in `type`. static mlir::ShapedType ReversePermuteShapedType( mlir::ShapedType type, ArrayRef<int64_t> permutation) { if (!type.hasRank()) return type; auto shape = type.getShape(); SmallVector<int64_t, 4> new_shape(shape.size()); for (int i = 0; i < permutation.size(); ++i) { int64_t index = permutation[i]; assert(index < shape.size());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.3K 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) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc
} // Convenience function to create a `TransposeOp` with a given `permutation`. // The Location is set as `input`'s loc. TransposeOp CreateTransposeOp(Value input, const ArrayRef<int64_t> permutation, PatternRewriter& rewriter) { return rewriter.create<TransposeOp>( input.getLoc(), input, rewriter.getDenseI64ArrayAttr(permutation)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.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) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.cc
} auto transposed_type = RankedTensorType::get(transposed_shape, input_type.getElementType()); DenseIntElementsAttr permutation = DenseIntElementsAttr::get( RankedTensorType::get(permutation_array.size(), rewriter.getI64Type()), permutation_array); return {permutation, transposed_type}; } Value BuildIntConstOp(ImplicitLocOpBuilder& builder,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.1K 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)