Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 187 for qint (0.06 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/tests/bridge/verify-quant-legalization.mlir

    func.func @illegal_qint8(%arg0: tensor<1x!tf_type.qint8>) -> tensor<1x!tf_type.qint8> {
      // expected-error@+1 {{'func.return' op is illegal as it is a UQ op or contains uq/qint types}}
      func.return %arg0: tensor<1x!tf_type.qint8>
    }
    
    // -----
    
    func.func @illegal_cast(%arg0: tensor<1x!tf_type.qint8>) -> tensor<1xi8> {
      // expected-error@+1 {{'tf.Cast' op is illegal as it is a UQ op or contains uq/qint types}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 18 18:54:14 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.td

    }
    
    def ConvertTFQuantTypes : Pass<"convert-tf-quant-types", "mlir::func::FuncOp"> {
      let summary = "Replace TensorFlow qint types with int types.";
    
      let description = [{
        Converts TF ops with qint types to int types. Some UniformQuantized ops
        argument/result allow qint type only. For such cases, add qint <-> int
        tf.Cast around the ops so that they are still valid.
      }];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 01:41:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils.h

    FailureOr<mlir::DenseElementsAttr> GetDenseAttrFromTensorProtoAttr(
        llvm::StringRef mangled_tensor_proto, TensorType result_tensor_type);
    
    // Check if a type is TF qint type.
    bool IsTFQintType(Type type);
    
    // Convert qint type to the corresponding int type. Return original type if it
    // is not qint type.
    Type GetIntTypeFromTFQint(Type type);
    
    // Check if an op is TF UniformQuantized op.
    bool IsTFUniformQuantizedOp(Operation* op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/verify_quant_legalization.cc

        // Verify all uq and qint types are lowered.
        if (llvm::any_of(op->getOperandTypes(), IsQuantType) ||
            llvm::any_of(op->getResultTypes(), IsQuantType) ||
            IsTFUniformQuantizedOp(op) || IsMhloUniformQuantizedOp(*op)) {
          op->emitOpError("is illegal as it is a UQ op or contains uq/qint types");
          LOG(ERROR) << "Found illegal op containing uq/qint type: "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.h

                                                RewritePatternSet *patterns);
    
    // Creates an instance of the ConvertTFQuantTypes pass, which will convert TF
    // qint types to int types and surround TF UniformQuantized ops with qint <->
    // int casts.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateConvertTFQuantTypesPass();
    
    // Creates an instance of the VerifyQuantLegalization pass, which verifies all
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 01:41:18 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils_test.cc

    namespace {
    
    std::string GetQint8Tensor() {
      ::tensorflow::Tensor tensor(::tensorflow::DT_QINT8, {2, 2});
      tensor.matrix<tsl::qint8>()(0, 0) = tsl::qint8(1);
      tensor.matrix<tsl::qint8>()(0, 1) = tsl::qint8(2);
      tensor.matrix<tsl::qint8>()(1, 0) = tsl::qint8(3);
      tensor.matrix<tsl::qint8>()(1, 1) = tsl::qint8(4);
    
      ::tensorflow::TensorProto tensor_proto;
      tensor.AsProtoTensorContent(&tensor_proto);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. .github/workflows/mint.yml

    name: Mint Tests
    
    on:
      pull_request:
        branches:
          - master
    
    # This ensures that previous jobs for the PR are canceled when the PR is
    # updated.
    concurrency:
      group: ${{ github.workflow }}-${{ github.head_ref }}
      cancel-in-progress: true
    
    permissions:
      contents: read
    
    jobs:
      mint-test:
        runs-on: mint
        timeout-minutes: 120
        steps:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 15:12:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. .github/workflows/helm-lint.yml

        steps:
          - name: Checkout
            uses: actions/checkout@v4
    
          - name: Install Helm
            uses: azure/setup-helm@v4
    
          - name: Run helm lint
            run: |
              cd helm/minio
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 09 09:13:09 UTC 2024
    - 551 bytes
    - Viewed (0)
  9. .github/workflows/run-mint.sh

    export JOB_NAME="$4"
    export MINT_MODE="full"
    
    docker system prune -f || true
    docker volume prune -f || true
    docker volume rm $(docker volume ls -f dangling=true) || true
    
    ## change working directory
    cd .github/workflows/mint
    
    docker-compose -f minio-${MODE}.yaml up -d
    sleep 1m
    
    docker system prune -f || true
    docker volume prune -f || true
    docker volume rm $(docker volume ls -q -f dangling=true) || true
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. hack/verify-golangci-lint.sh

      if [[ "${arg}" == -* ]]; then
        golangci+=("${arg}")
      else
        targets+=("${arg}")
      fi
    done
    
    # Install golangci-lint
    echo "installing golangci-lint and logcheck plugin from hack/tools into ${GOBIN}"
    go -C "${KUBE_ROOT}/hack/tools" install github.com/golangci/golangci-lint/cmd/golangci-lint
    if [ "${golangci_config}" ]; then
      # This cannot be used without a config.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top