1. 07 Nov, 2023 1 commit
  2. 11 Aug, 2023 1 commit
  3. 17 Jan, 2023 1 commit
    • Charlie Lin's avatar
      Dynamic ONNX Gemm (#1459) · 8b651eee
      Charlie Lin authored
      Extends ONNX Gemm parser to handle dynamic input shapes
      Limits ONNX Gemm parsing to 2D input tensors for A and B inputs
      As per the ONNX specifications
      Changed Gemm ONNX tests to 2D input versions
      Add onnx_verify tests for Gemm
      Parsing ONNX Gemm links to more than one operator, checking that it produces the correct result
      8b651eee
  4. 22 Jun, 2022 1 commit
  5. 16 Sep, 2021 1 commit
    • Shucai Xiao's avatar
      Loop operator (#853) · a275f590
      Shucai Xiao authored
      
      
      Add Loop operator for opset version 13.
      Notes: 1) Default max iteration number is 10 if no max iteration number is provided
      2) To change the max iter number, a user can set the max_loop_iterations in the onnx_option struct when parsing a model.
      3) The returned shape of the scan output is from the max_loop_iterations even the actual loop num is less than that. This issue also applies to other operators like NonZero and NonMaxSuppression. A issue #948 is created to track this and to be resolved later.
      Co-authored-by: default avatarPaul <pfultz2@yahoo.com>
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      a275f590
  6. 05 Nov, 2020 1 commit
    • Shucai Xiao's avatar
      add get_main_module api (#665) · 6554639b
      Shucai Xiao authored
      
      
      * add an api get_main_module
      
      * clang format
      
      * modify onnx unit test for module
      
      * clang format
      
      * refactor ops unit test with the get_main_module
      
      * clang format
      
      * code backup
      
      * clang format
      
      * refine module c api
      
      * add python api for module
      
      * clang format
      
      * fix a python api issue
      
      * clang format
      
      * fix cppcheck error
      
      * clang format
      
      * refine unit tests changes
      
      * clang format
      
      * defer some changes to later PRs
      
      * change return of get_main_module from ref to pointer
      
      * clang format
      
      * add unit tests for the get_main_module_api
      
      * clang format
      
      * fix cppcheck error
      
      * clang format
      
      * add more unit tests for more code change coverage
      
      * clang format
      
      * fix unit test
      
      * clang format
      
      * code change for more code coverage
      
      * Add option to no generate a destroy method
      
      * Formatting
      
      * fix some review comments
      
      * clang format
      
      * fix review comments
      
      * clang format
      
      * clang format
      Co-authored-by: default avatarPaul <pfultz2@yahoo.com>
      6554639b
  7. 04 Nov, 2020 1 commit
    • Paul Fultz II's avatar
      Split cpu and reference implementation (#671) · 500d9441
      Paul Fultz II authored
      
      
      * Add all_targets cmake target
      
      * Rename target
      
      * Add ref target
      
      * Rename tests
      
      * Refactor compiler target
      
      * Formatting
      
      * Verify for every target
      
      * Formatting
      
      * Add verify test suite
      
      * Formatting
      
      * Add initial test programs
      
      * Formatting
      
      * Add rnn tests
      
      * Formatting
      
      * Validate gpu
      
      * Formatting
      
      * Remove old gpu tests
      
      * Fix gpu tests
      
      * Fix ref error
      
      * Fix tidy issues
      
      * Formatting
      
      * Tidy fixes
      
      * Fix header in python api
      
      * Rename to ref
      
      * Use ref in verify_onnx
      
      * Fix tidy issue
      
      * Build with verbose on
      
      * Fix typo
      
      * Remove verbose
      
      * rename some cpu prefix to ref
      Co-authored-by: default avatarShucai Xiao <Shucai.Xiao@amd.com>
      500d9441
  8. 21 Sep, 2020 1 commit
  9. 29 Jun, 2020 1 commit
    • Shucai Xiao's avatar
      Add quantization c api (#547) · 158bf57c
      Shucai Xiao authored
      
      
      * add quantization_fp16 c api
      
      * clang format
      
      * add quantization c api
      
      * clang format
      
      * backup code for add_c_api of quantization
      
      * add c/c++ api for the quantization
      
      * clang format
      
      * fix a cppcheck error
      
      * fix cpp check error
      
      * add unit test for quantization apis
      
      * clang format
      
      * fix cppcheck error
      
      * clang format
      
      * refine unit tests to cover more code changes
      
      * clang format
      
      * refine unit tests for more code change coverage
      
      * add an op_names class
      
      * clang format
      
      * refine a unit test for more code change coverage
      
      * code backup
      
      * clang format
      
      * remove unnecessary code
      
      * fix review comments
      
      * clang format
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      158bf57c
  10. 15 May, 2020 1 commit
  11. 05 May, 2020 1 commit
    • Shucai Xiao's avatar
      Python_scalar_argument_support (#463) · 233d4303
      Shucai Xiao authored
      
      
      * python api support scalar argument
      
      * clang format
      
      * add unit test for the scalar type
      
      * clang format
      
      * update to include numpy
      
      * fix package issue
      
      * fix package issue
      
      * fixed review comments
      
      * resolve review comments
      
      * remove unnecessary changes
      
      * refine a unit test for beter coverage
      
      * clang format
      
      * refine unit tests to cover code change
      
      * clang format
      
      * change unit test
      
      * refine tests
      
      * refine unit test
      
      * clang format
      
      * refine unit test
      
      * fix a dockerfile error
      
      * fix bug
      
      * scalar shape support in c++ api
      
      * clang format
      
      * fix cppcheck error
      
      * fix possible errors
      
      * clang format
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      233d4303
  12. 30 Apr, 2020 1 commit
    • Shucai Xiao's avatar
      Parse onnx using explicit input shape (#474) · 2074d756
      Shucai Xiao authored
      
      
      * refine slice implementation
      
      * clang format
      
      * fix cppcheck error
      
      * clang format
      
      * change parse operator function signature
      
      * clang format
      
      * add parsing the split operator
      
      * clang format
      
      * add parsing split operator
      
      * make squeeze/unsqueeze inputs to standard shape
      
      * fix a bug in parsing slice
      
      * change parsing pad to support opset 11 definition
      
      * clang format
      
      * add unit tests for the split operator
      
      * clang format
      
      * fix cppcheck error
      
      * clang format
      
      * update tests for multiple program outputs
      
      * clang format
      
      * fix cppcheck error
      
      * clang format
      
      * refine an error message
      
      * add unit tests for the pad operator
      
      * clang format
      
      * add unit tests for slice operator
      
      * clang format
      
      * fix review comments
      
      * fix cppcheck error
      
      * add the numpy package in the Dockerfile
      
      * add c api for onnx options
      
      * clang format
      
      * change c/c++ and python apis related to parse_onnx option change
      
      * clang format
      
      * fixed a bug
      
      * fix a bug
      
      * add fix bugs in cpp api
      
      * fix bugs in c api for onnx_options
      
      * clang format
      
      * add unit tests
      
      * clang format
      
      * add missing onnx file
      
      * add more unit test for dynamic input shape support
      
      * clang format
      
      * fix cppcheck error
      
      * fix cppcheck error
      
      * fix cppcheck error
      
      * clang format
      
      * fix cppcheck error
      
      * clang format
      
      * code change to resolve the segmentation problem
      
      * clang format
      
      * change the api
      
      * clang format
      
      * fixed a unit test error
      
      * fix cppcheck error
      
      * clang format
      
      * fixed a cppcheck error
      
      * fix review comments
      
      * clang format
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      2074d756
  13. 21 Apr, 2020 1 commit
  14. 07 Feb, 2020 1 commit
    • Paul Fultz II's avatar
      Add C and C++ api (#430) · b949da7f
      Paul Fultz II authored
      
      
      * Add initial api
      
      * Formatting
      
      * Add more api
      
      * Formatting
      
      * Add auto api generation
      
      * Formatting
      
      * Fix some compilation errors
      
      * Change handle struct
      
      * Formatting
      
      * Fix reamining compilation errors
      
      * Formatting
      
      * Simplify using ctype
      
      * Formatting
      
      * Initial c++ generation
      
      * Formatting
      
      * Add C++header
      
      * Formatting
      
      * Add test
      
      * Formatting
      
      * Add initial tests
      
      * Formatting
      
      * Try to fix formatting
      
      * Cleanup formatting
      
      * Formatting
      
      * Fix constructors on the same line
      
      * Fix tests
      
      * Formatting
      
      * Fix tidy issues
      
      * Fix tidy issues
      
      * Fix naming issue
      
      * Add onnx API to parse buffer
      
      * Formatting
      
      * Add arguments api
      
      * Formatting
      
      * Fix verify parameters
      
      * Fix cppcheck issues
      
      * Formatting
      
      * Add method to get output shapes and bytes
      
      * Formatting
      
      * Try formatting
      
      * Formatting
      
      * Improve the test coverage
      
      * Formatting
      
      * Add print method
      
      * Formatting
      
      * Fix cppcheck issue
      
      * Fix package dependency
      
      * Add nolint
      
      * Try fix formatting
      
      * Formatting
      
      * formatting
      
      * formatting
      
      * Fix formatting
      Co-authored-by: default avatarShucai Xiao <shucai.xiao@amd.com>
      Co-authored-by: default avatarkahmed10 <15948690+kahmed10@users.noreply.github.com>
      b949da7f