- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 124 for permutation (0.25 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/cc/permutation.h
#include "mlir/Support/LLVM.h" // from @llvm-project namespace mlir::quant { // Permutes `values` with `permutation`. Returns the permuted values. Sizes of // `values` and `permutation` must be equal, and the elements of `permutation` // should be less than `values.size()`. template <typename T, typename = std::enable_if_t<std::is_default_constructible_v<T>, void>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 00:14:00 UTC 2024 - 1.9K bytes - Viewed (0) -
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.h
// Operation data format after folding `permutation`. StringRef target_data_format = [&]() -> StringRef { if (op->getDataFormat() == "NHWC" && permutation.equals(kNchwToNhwc)) { return "NCHW"; // cancel NCHW->NHWC operand permutation } else if (op->getDataFormat() == "NCHW" && permutation.equals(kNhwcToNchw)) { return "NHWC"; // cancel NHWC->NCHW operand permutation } else { return ""; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 5.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/selectors/SelectorStateResolverTest.groovy
def expected = permutation.expectedSingle expect: resolver(permutation.conflicts).resolve(candidates) == expected where: permutation << SCENARIOS_PREFER_BATCH2 } def "resolve reject pair #permutation"() { given: def candidates = permutation.candidates def expected = permutation.expectedSingle expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 07 23:54:34 UTC 2024 - 16.8K 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) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/versions/VersionRangeResolvePairBatch1IntegrationTest.groovy
def "resolve pair #permutation"() { given: def candidates = permutation.candidates def expectedSingle = permutation.expectedSingle def expectedMulti = permutation.expectedMulti expect: checkScenarioResolution(expectedSingle, expectedMulti, candidates) where: permutation << VersionRangeResolveTestScenarios.SCENARIOS_TWO_DEPENDENCIES_BATCH1
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.4K bytes - Viewed (0)