Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for genPerm (0.22 sec)

  1. src/hash/maphash/smhasher_test.go

    	b := make([]byte, n*4)
    	genPerm(h, b, s, 0)
    	h.check(t)
    }
    func genPerm(h *hashSet, b []byte, s []uint32, n int) {
    	h.addB(b[:n])
    	if n == len(b) {
    		return
    	}
    	for _, v := range s {
    		b[n] = byte(v)
    		b[n+1] = byte(v >> 8)
    		b[n+2] = byte(v >> 16)
    		b[n+3] = byte(v >> 24)
    		genPerm(h, b, s, n+4)
    	}
    }
    
    type key interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/runtime/hash_test.go

    	b := make([]byte, n*4)
    	genPerm(h, b, s, 0)
    	h.check(t)
    }
    func genPerm(h *HashSet, b []byte, s []uint32, n int) {
    	h.addB(b[:n])
    	if n == len(b) {
    		return
    	}
    	for _, v := range s {
    		b[n] = byte(v)
    		b[n+1] = byte(v >> 8)
    		b[n+2] = byte(v >> 16)
    		b[n+3] = byte(v >> 24)
    		genPerm(h, b, s, n+4)
    	}
    }
    
    type Key interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc

        }
    
        if (llvm::isa<BlockArgument>(tpose_arg1.getPerm()) ||
            llvm::isa<BlockArgument>(tpose_arg2.getPerm())) {
          return failure();
        }
        auto perm1 = llvm::dyn_cast_or_null<arith::ConstantOp>(
            tpose_arg1.getPerm().getDefiningOp());
        auto perm2 = llvm::dyn_cast_or_null<arith::ConstantOp>(
            tpose_arg2.getPerm().getDefiningOp());
        if (!perm1 || !perm2) {
          return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          }
        }
      }
    
      private enum Gender {
        MALE,
        FEMALE
      }
    
      private static class AllDefaultValuesChecker extends DefaultValueChecker {
    
        @SuppressWarnings("unused") // called by NullPointerTester
        public void checkDefaultValuesForTheseTypes(
            Gender gender,
            Integer integer,
            int i,
            String string,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

        if (dyn_cast_or_null<quantfork::QuantizeCastOp>(next_op)) return failure();
    
        auto input_type = mlir::cast<ShapedType>(transpose_op.getInput().getType());
        auto perm_type = mlir::cast<ShapedType>(transpose_op.getPerm().getType());
        if (input_type.hasStaticShape() && perm_type.hasStaticShape()) {
          if (perm_type.getNumElements() != input_type.getRank()) {
            return transpose_op.emitOpError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/optimize.cc

          if (axis != i / 2) return failure();
          ++i;
        }
    
        // Check whether first tranpose's perm has [2, 1, 0, 3].
        DenseIntElementsAttr perm;
        if (!matchPattern(transpose_first.getPerm(), m_Constant(&perm)))
          return failure();
        SmallVector<int64_t, 4> axes;
        for (const auto &axis_int : perm.getValues<APInt>()) {
          axes.push_back(axis_int.getSExtValue());
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

        auto qconst_op = llvm::dyn_cast_or_null<QConstOp>(def_op);
        if (qconst_op == nullptr) return failure();
    
        DenseIntElementsAttr perm_tensor;
        if (!matchPattern(op.getPerm(), m_Constant(&perm_tensor))) return failure();
    
        if (!mlir::isa<quant::UniformQuantizedType>(
                (getElementTypeOrSelf(op.getOutput().getType()))))
          return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. cluster/gce/util.sh

        # create the kubelet client cert with the correct groups
        echo '{"CN":"kubelet","names":[{"O":"system:nodes"}],"hosts":[""],"key":{"algo":"rsa","size":2048}}' | "${CFSSL_BIN}" gencert -ca=pki/ca.crt -ca-key=pki/private/ca.key -config=ca-config.json - | "${CFSSLJSON_BIN}" -bare kubelet
        mv "kubelet-key.pem" "pki/private/kubelet.key"
        mv "kubelet.pem" "pki/issued/kubelet.crt"
        rm -f "kubelet.csr"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 21:47:17 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

          }
        }
      }
    
      // Permutations defined by constant operations.
      DenseIntElementsAttr perm0;
      DenseIntElementsAttr perm1;
      if (!matchPattern(op.getPerm(), m_Constant(&perm0)) ||
          !matchPattern(transpose.getPerm(), m_Constant(&perm1)))
        return {};
    
      // With permutation indices that cancel each other
      if (!AreCancellablePermutations(perm0, perm1)) return {};
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    }
    
    mlir::LogicalResult TransposeOp::verify() {
      TransposeOp op = *this;
      auto input_type = op.getInput().getType().cast<ShapedType>();
      auto perm_type = op.getPerm().getType().cast<ShapedType>();
      auto output_type = op.getOutput().getType().cast<ShapedType>();
      if (input_type.hasStaticShape() && perm_type.hasStaticShape()) {
        if (perm_type.getNumElements() != input_type.getRank()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top