Skip to content

Commit

Permalink
Update IQuantizer::quantize signature
Browse files Browse the repository at this point in the history
  • Loading branch information
glistening committed Sep 6, 2023
1 parent c6bb838 commit 91555dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion runtime/onert/core/include/odc/IQuantizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef __ONERT_ODC_IQUANTIZER_H__
#define __ONERT_ODC_IQUANTIZER_H__

#include "odc/QuantizeType.h"

namespace onert
{
namespace odc
Expand All @@ -27,7 +29,7 @@ class IQuantizer
public:
virtual ~IQuantizer() = default;

virtual int quantize(const char *in, const char *out, bool is_q16) = 0;
virtual int quantize(const char *in, const char *out, QuantizeType qtype) = 0;
};

} // namespace odc
Expand Down
3 changes: 1 addition & 2 deletions runtime/onert/odc/Quantizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define __ONERT_ODC_QUANTIZE_H__

#include "odc/IQuantizer.h"
#include "odc/QuantizeType.h"

namespace onert
{
Expand All @@ -31,7 +30,7 @@ class Quantizer : public IQuantizer
Quantizer() = default;
~Quantizer() = default;

int quantize(const char *in, const char *out, QuantizeType qtype);
int quantize(const char *in, const char *out, QuantizeType qtype) override;
};

} // namespace odc
Expand Down

0 comments on commit 91555dd

Please sign in to comment.