chromium/third_party/xnnpack/src/src/xnnpack/quantization.h

// Copyright 2023 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.

#pragma once

#include <assert.h>
#include <math.h>
#include <stdint.h>

#include <fp16/fp16.h>
#include "xnnpack/math.h"
#include "xnnpack/microparams.h"

static inline struct xnn_qd8_quantization_params xnn_qd8_asymmetric_quantization_params(
    float min, float max)
{}

static inline struct xnn_qd8_quantization_params xnn_f32_qd8_asymmetric_quantization_params(
    float min, float max)
{}

static inline struct xnn_qd8_quantization_params xnn_f16_qd8_asymmetric_quantization_params(
    uint16_t min, uint16_t max, uint16_t* f16_scale)
{}