Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for permutation (4.34 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/versions/VersionRangeResolvePreferPairBatch2IntegrationTest.groovy

        def "resolve prefer pair #permutation"() {
            given:
            def candidates = permutation.candidates
            def expectedSingle = permutation.expectedSingle
            def expectedMulti = permutation.expectedMulti
    
            expect:
            checkScenarioResolution(expectedSingle, expectedMulti, candidates)
    
            where:
            permutation << VersionRangeResolveTestScenarios.SCENARIOS_PREFER_BATCH2
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.h

    namespace odml {
    
    struct PermutationAndShape {
      DenseIntElementsAttr permutation;
      ShapedType shape;
    };
    
    // Check that `arr` is an R1 iota with integer element type starting from `0`
    // with `size` number of values.
    bool IsIotaAttr(ArrayRef<int64_t> arr, int64_t size);
    
    // Returns a DenseIntElementsAttr for a permutation and the shape after
    // applying the permutation to a given shape through a transpose.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 11:35:25 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/versions/VersionRangeResolveRejectPairIntegrationTest.groovy

        def "resolve reject pair #permutation"() {
            given:
            def candidates = permutation.candidates
            def expectedSingle = permutation.expectedSingle
            def expectedMulti = permutation.expectedMulti
    
            expect:
            checkScenarioResolution(expectedSingle, expectedMulti, candidates)
    
            where:
            permutation << VersionRangeResolveTestScenarios.SCENARIOS_DEPENDENCY_WITH_REJECT
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top