Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[onert] support int4/uint4 weight #12750

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

Conversation

chunseoklee
Copy link
Contributor

No description provided.

@chunseoklee chunseoklee changed the title [onert] support int4 weight [onert] support int4/uint4 weight Mar 18, 2024
- nnfw_api_test for int4 wieght
    + hybrid FC with int4 weight : input F32, weight int4, oiutput F32
@chunseoklee
Copy link
Contributor Author

case DataType::QUANT_INT4_SYMM:
      return sizeof(uint8_t); // Q: what is type size for int4?

FIXME: What is the size of DataType::QUANT_INT4_SYMM ?

@chunseoklee chunseoklee linked an issue Mar 19, 2024 that may be closed by this pull request
4 tasks
@hseok-oh
Copy link
Contributor

Usage of sizeOfDataType()

  • NNAPIConvert::calculateSizeFromType(): runtime/onert/api/nnapi/wrapper/NNAPIConvert.cc
  • OperandInfo::total_size(): runtime/onert/core/include/ir/OperandInfo.h
  • Tensor::calcOffset() & Tensor::applyShape(): runtime/onert/core/src/backend/basic/Tensor.cc
  • UserTensor::calcOffset() & UserTensor::applyShape(): runtime/onert/core/src/backend/builtin/UserTensor.cc
  • Execution::setInput(): runtime/onert/core/src/exec/Execution.cc
  • MockUpTensor::total_size(), MockUpTensor::has_padding(), MockUpTensor::has_padding() : runtime/onert/core/src/exec/IPermuteFunction.test.cc
  • Operand::operandSize(): runtime/onert/core/src/ir/Operand.cc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR/NO TEST Tell CI to not run test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[onert] Let's support int4 weight
2 participants