1. 26 Mar, 2021 1 commit
    • Paul Fultz II's avatar
      Add initial code generation (#762) · 581d31b0
      Paul Fultz II authored
      
      
      * Add code object op
      
      * Formattting
      
      * Add more value tests
      
      * Formatting
      
      * Fix from_value conversion from binary
      
      * Formatting
      
      * Dont use offload copy
      
      * Remove iostream header
      
      * Fix compilation errors
      
      * Formatting
      
      * Rename var
      
      * Add missing files
      
      * Formatting
      
      * Remove duplicate variable
      
      * Remove comment
      
      * Template the function so sfinae will work
      
      * Formatting
      
      * Use template specialization since ADL is broken on hcc
      
      * Formatting
      
      * Annotate the constructor with HD for hcc
      
      * Make variable const
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      581d31b0
  2. 25 Mar, 2021 2 commits
    • Paul Fultz II's avatar
      Bump version · e1819f81
      Paul Fultz II authored
      e1819f81
    • Paul Fultz II's avatar
      Add cpu fusion for gelu and layernorm (#761) · 728d083d
      Paul Fultz II authored
      
      
      * Add eliminate_data_type pass
      
      * Formatting
      
      * Auto convert quant ops
      
      * Formatting
      
      * Flip the order of decompose
      
      * Compute max size differently
      
      * Formatting
      
      * Clamp values in convert
      
      * Formatting
      
      * Fix loss of precision in reduce
      
      * Formatting
      
      * Fix bugs in reduction
      
      * Fix accumulator type in reference softmax implementation
      
      * Formatting
      
      * Update convert test
      
      * Remove unused variables
      
      * Remove unnecessary quant_dot check
      
      * Formatting
      
      * Add tests
      
      * Formatting
      
      * Remove unused code
      
      * Remove duplicate ops
      
      * Remove blaze dependency
      
      * Use set since shape::type_t is no hashable on gcc 5
      
      * Formatting
      
      * Add dnnl binary op
      
      * Formatting
      
      * Add binary and eltwise
      
      * Formatting
      
      * Add softmax
      
      * Formatting
      
      * Remove unused operators
      
      * Add missing files
      
      * Formatting
      
      * Add lrn
      
      * Formatting
      
      * Add deconvolution
      
      * Formatting
      
      * Change allocate default
      
      * Add reorder
      
      * Formatting
      
      * Add reductions
      
      * Formatting
      
      * Sort lines
      
      * Change literals in another loop
      
      * Add pow operator
      
      * Formatting
      
      * Add pow operator
      
      * Formatting
      
      * Make sure shapes are packed
      
      * Allow broadcasted inputs
      
      * Remove unused operators
      
      * Simplify functions
      
      * Remove softmax
      
      * Add sub and erf functions
      
      * Formatting
      
      * Fix bug
      
      * Formatting
      
      * Improve parallism
      
      * Formatting
      
      * Allow multiple batch dimensions
      
      * Formatting
      
      * Move literal transforms out of lowering
      
      * Formatting
      
      * Add gather operator
      
      * Sort lines
      
      * Add early exit for carry
      
      * Formatting
      
      * Add missing concat
      
      * Rename macro
      
      * Fix deep nesting
      
      * Formatting
      
      * Fix cppcheck issues
      
      * Remov else
      
      * Move attribute to typedef
      
      * Formatting
      
      * Disable maybe-uninitialized warning since its broken on gcc
      
      * Add constexpr default constructor
      
      * Formatting
      
      * Fix compiler warnings
      
      * Fix adjust_allocation test
      
      * Add layernorm matcher
      
      * Add gelu_erf matcher
      
      * Formatting
      
      * Add gelu_tanh matcher
      
      * Formatting
      
      * Remove match namespace
      
      * Formatting
      
      * Use matcher instead of string
      
      * Formatting
      
      * Add fusions
      
      * Formatting
      
      * Make input a const ref
      
      * Make this explicit for gcc 5
      Co-authored-by: default avatarShucai Xiao <shucai@gmail.com>
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      728d083d
  3. 18 Mar, 2021 1 commit
    • kahmed10's avatar
      Add tf C++ API (#770) · 51fb672d
      kahmed10 authored
      
      
      * fix relu6
      
      * add more transposes
      
      * add parse_tf calls
      
      * progress on multi_outputs
      
      * formatting
      
      * add multi output test
      
      * add comment and update migraphx.py
      
      * fix compile
      
      * formatting
      
      * update tools/api
      
      * formatting
      
      * fix function call
      
      * fix generate
      
      * simplify tests
      
      * formatting
      
      * rename tests
      
      * enclose braces
      
      * add more tests
      
      * update comments
      
      * rename file and add default param
      
      * formatting
      
      * fix tidy and change type
      
      * formatting older files
      Co-authored-by: default avatarPaul Fultz II <pfultz2@yahoo.com>
      51fb672d
  4. 17 Mar, 2021 4 commits
    • Paul's avatar
      Update rocm-cmake version · 1a948d5b
      Paul authored
      1a948d5b
    • Paul Fultz II's avatar
      Exit on first failure in formatting check · 0fc74a88
      Paul Fultz II authored
      0fc74a88
    • Shucai Xiao's avatar
      Module operations (#741) · e96d2b9a
      Shucai Xiao authored
      
      
      * code backup
      
      * clang format
      
      * code backup
      
      * change the print function to support print instruction from other modules
      
      * clang format
      
      * fix cppcheck error
      
      * fix cppcheck error
      
      * chang to make submodule to be owned by program instead of modules
      
      * clang format
      
      * add an unit test for copy of a program with sub_modules
      
      * clang format
      
      * remove the parent_module member variable from the module class
      
      * clang format
      
      * add unit test for serialization of program with submodules
      
      * clang format
      
      * Fix bug where instructions were not printed when doing TRACE_EVAL
      
      * clang storage of modules from map to list
      
      * clang format
      
      * Formatting
      
      * change the program assign function
      
      * clang format
      
      * code cleanup
      
      * clang format
      
      * backup code
      
      * clang format
      
      * remove unnecessary code
      
      * clang format
      
      * add module print function
      
      * code backup
      
      * refine the module::print function
      
      * refine the module:to_value() function
      
      * code backup
      
      * backup code changes
      
      * code backup
      
      * remove to_value and from_value function from the module class
      
      * rename a function
      
      * rename the if operator
      
      * refine the if operator
      
      * refine the print function of module and program
      
      * code backup
      
      * code backup
      
      * fix a build warning
      
      * fix overload of compute_shape function
      
      * code backup
      
      * fix unit test error
      
      * fix cppcheck error
      
      * fix the issue related to the overload of compute_shape
      
      * fix review comments
      
      * fix cppcheck error
      
      * change the return name of if_op to be if
      
      * clang format
      
      * fix two unit tests
      
      * clang format
      
      * remove the unused compute_op function
      
      * clang format
      
      * fix clang tidy format
      
      * clang format
      
      * enhance the validate function and uncomment a unit test
      
      * clang format
      
      * remove unnecessary code
      
      * clang format
      
      * fix a hang issue related to the valid function
      
      * fix an issue in replace_refs
      
      * clang format
      
      * fix review comments
      
      * clang format
      
      * fix cppcheck error
      
      * add a unit test for more code coverage
      
      * clang format
      
      * fix review comments and add test for more code coverage
      
      * clang format
      
      * fix cppcheck error
      
      * fix a cppcheck error
      
      * clang format
      
      * fix cppcheck error
      
      * clang format
      
      * fix review comments
      
      * clang format
      Co-authored-by: default avatarPaul <pfultz2@yahoo.com>
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      e96d2b9a
    • Paul Fultz II's avatar
      Run on PRs · 7b22d210
      Paul Fultz II authored
      7b22d210
  5. 12 Mar, 2021 1 commit
  6. 10 Mar, 2021 1 commit
  7. 05 Mar, 2021 1 commit
  8. 04 Mar, 2021 1 commit
  9. 03 Mar, 2021 1 commit
  10. 27 Feb, 2021 1 commit
  11. 26 Feb, 2021 4 commits
    • Cagri Eryilmaz's avatar
      changes for not operator (#735) · ebf8bd20
      Cagri Eryilmaz authored
      
      
      * changes for not operator
      
      * changed name of the op from unary_not to not
      
      * Added tests for op and onnx parsing
      
      * reordering not_test in onnx_test.cpp
      
      * not operator -- gpu implementation
      
      * added bool test for not operator
      
      * Added test and missing links for not operator on GPU
      
      * typo fix
      
      * adding .onnx test files for not operator
      
      * formatting
      Co-authored-by: default avatarShucai Xiao <shucai@gmail.com>
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      ebf8bd20
    • Paul Fultz II's avatar
      Add more supported operators and optimizations for the cpu backend (#746) · a0b570b2
      Paul Fultz II authored
      
      
      * Add eliminate_data_type pass
      
      * Formatting
      
      * Auto convert quant ops
      
      * Formatting
      
      * Flip the order of decompose
      
      * Compute max size differently
      
      * Formatting
      
      * Clamp values in convert
      
      * Formatting
      
      * Fix loss of precision in reduce
      
      * Formatting
      
      * Fix bugs in reduction
      
      * Fix accumulator type in reference softmax implementation
      
      * Formatting
      
      * Update convert test
      
      * Remove unused variables
      
      * Remove unnecessary quant_dot check
      
      * Formatting
      
      * Add tests
      
      * Formatting
      
      * Remove unused code
      
      * Remove duplicate ops
      
      * Remove blaze dependency
      
      * Use set since shape::type_t is no hashable on gcc 5
      
      * Formatting
      
      * Add dnnl binary op
      
      * Formatting
      
      * Add binary and eltwise
      
      * Formatting
      
      * Add softmax
      
      * Formatting
      
      * Remove unused operators
      
      * Add missing files
      
      * Formatting
      
      * Add lrn
      
      * Formatting
      
      * Add deconvolution
      
      * Formatting
      
      * Change allocate default
      
      * Add reorder
      
      * Formatting
      
      * Add reductions
      
      * Formatting
      
      * Sort lines
      
      * Change literals in another loop
      
      * Add pow operator
      
      * Formatting
      
      * Add pow operator
      
      * Formatting
      
      * Make sure shapes are packed
      
      * Allow broadcasted inputs
      
      * Remove unused operators
      
      * Simplify functions
      
      * Remove softmax
      
      * Add sub and erf functions
      
      * Formatting
      
      * Fix bug
      
      * Formatting
      
      * Improve parallism
      
      * Formatting
      
      * Allow multiple batch dimensions
      
      * Formatting
      
      * Move literal transforms out of lowering
      
      * Formatting
      
      * Add gather operator
      
      * Sort lines
      
      * Add early exit for carry
      
      * Formatting
      
      * Add missing concat
      
      * Rename macro
      
      * Fix deep nesting
      
      * Formatting
      
      * Fix cppcheck issues
      
      * Remov else
      
      * Move attribute to typedef
      
      * Formatting
      
      * Disable maybe-uninitialized warning since its broken on gcc
      
      * Add constexpr default constructor
      
      * Formatting
      
      * Fix compiler warnings
      
      * Fix adjust_allocation test
      Co-authored-by: default avatarShucai Xiao <shucai@gmail.com>
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      a0b570b2
    • Shucai Xiao's avatar
      Refine readme (#749) · 165d1a17
      Shucai Xiao authored
      
      
      * update README.md file
      
      * update README.md file
      
      * update README.md file
      
      * update README.md file
      
      * update README.md file
      
      * update dependencies
      
      * update dependencies
      
      * update readme file
      
      * format issue
      
      * edit
      
      * edit text
      
      * update script to install all dependencies
      
      * remove unnecessary libs
      
      * refine readme file
      
      * refine readme file
      
      * refine readme file
      
      * refine readme file
      
      * refine README
      
      * refine readme.md file
      
      * fix a error in the README.md file
      
      * change to use Dockerfile to call install_prereqs.sh
      
      * refine readme file
      
      * minor changes
      
      * minor changes
      
      * minor changes
      
      * minor changes
      
      * minor changes
      
      * minor changes
      
      * fixed a bug
      
      * refine readme file
      
      * minor change
      
      * minor changes
      
      * minor changes
      
      * minor changes
      
      * some additional refinement
      
      * fix review comments
      
      * some refinement
      
      * fix review comments
      
      * refine readme file
      
      * fix minor issue
      
      * change the miopen versioin back to 2.4.0
      
      * fix an error in find_package
      
      * remove an unnecessary change
      
      * some additional refinement of the readme file
      
      * fix readme file
      
      * fix a review comments
      
      * added one more note for rbuild
      
      * add more informat for rbuild not found
      
      * add a period
      
      * Update README.md
      Co-authored-by: default avatarkahmed10 <15948690+kahmed10@users.noreply.github.com>
      
      * Update README.md
      Co-authored-by: default avatarkahmed10 <15948690+kahmed10@users.noreply.github.com>
      
      * Update README.md
      Co-authored-by: default avatarkahmed10 <15948690+kahmed10@users.noreply.github.com>
      
      * Update README.md
      Co-authored-by: default avatarkahmed10 <15948690+kahmed10@users.noreply.github.com>
      
      * Update README.md
      Co-authored-by: default avatarkahmed10 <15948690+kahmed10@users.noreply.github.com>
      
      * Update README.md
      Co-authored-by: default avatarkahmed10 <15948690+kahmed10@users.noreply.github.com>
      
      * Update README.md
      Co-authored-by: default avatarkahmed10 <15948690+kahmed10@users.noreply.github.com>
      
      * Update README.md
      Co-authored-by: default avatarkahmed10 <15948690+kahmed10@users.noreply.github.com>
      
      * refine a link in the readme file
      
      * some additional refinement
      
      * minor changes
      
      * minor changes
      
      * minor changes
      Co-authored-by: default avatarkahmed10 <15948690+kahmed10@users.noreply.github.com>
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      165d1a17
    • Shucai Xiao's avatar
      If const cond (#739) · 867539b7
      Shucai Xiao authored
      
      
      * if operator support with constant condition input
      
      * clang format
      
      * add a missing file
      
      * clang format
      
      * add an onnx verifcation unit test for the if operator
      
      * clang format'
      
      * fix review comments
      
      * temp version to try jenkin build
      
      * remove unnecessary changes
      
      * unit tests refinement for more code coverage
      
      * clang format
      
      * try a mutex to fix possible race condition in onnxruntime tests
      
      * tmp changes to try jenkins build
      
      * remove unnecessary code
      
      * fix review comments
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      867539b7
  12. 25 Feb, 2021 3 commits
  13. 23 Feb, 2021 2 commits
  14. 12 Feb, 2021 1 commit
  15. 11 Feb, 2021 1 commit
    • kahmed10's avatar
      Refactor tf parser (#726) · d237415f
      kahmed10 authored
      
      
      * refactor files
      
      * formatting
      
      * fix add_bcast test
      
      * fix some tidy errors
      
      * add transpose field and fix more tidy
      
      * formatting
      
      * add pad test and fix more tidy
      
      * formatting
      
      * fix conv parser
      
      * fix depthwiseconv
      
      * remove unsed functions
      
      * remove includes and functions
      Co-authored-by: default avatarPaul Fultz II <pfultz2@yahoo.com>
      d237415f
  16. 08 Feb, 2021 1 commit
    • Paul Fultz II's avatar
      Add a pass to remove unsupported data types (#738) · 3d24a21c
      Paul Fultz II authored
      
      
      * Add eliminate_data_type pass
      
      * Formatting
      
      * Auto convert quant ops
      
      * Formatting
      
      * Flip the order of decompose
      
      * Compute max size differently
      
      * Formatting
      
      * Clamp values in convert
      
      * Formatting
      
      * Fix loss of precision in reduce
      
      * Formatting
      
      * Fix bugs in reduction
      
      * Fix accumulator type in reference softmax implementation
      
      * Formatting
      
      * Update convert test
      
      * Remove unused variables
      
      * Remove unnecessary quant_dot check
      
      * Formatting
      
      * Add tests
      
      * Formatting
      
      * Remove unused code
      
      * Remove duplicate ops
      
      * Remove blaze dependency
      
      * Use set since shape::type_t is no hashable on gcc 5
      
      * Formatting
      Co-authored-by: default avatarShucai Xiao <shucai@gmail.com>
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      3d24a21c
  17. 06 Feb, 2021 1 commit
  18. 05 Feb, 2021 3 commits
    • Paul Fultz II's avatar
      Updates for module name (#737) · 4ef8ae15
      Paul Fultz II authored
      
      
      * Update module name
      
      * Formatting
      
      * Add const ref
      
      * Fix tidy warning
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      Co-authored-by: default avatarShucai Xiao <shucai@gmail.com>
      4ef8ae15
    • Paul Fultz II's avatar
      Normalize compute methods (#723) · 549cfe72
      Paul Fultz II authored
      
      
      * Normalize compute functions
      
      * Formatting
      
      * Save normalization flag to the file
      
      * Formatting
      
      * Remove tuned functions
      
      * Formatting
      
      * Use in_index
      Co-authored-by: default avatarShucai Xiao <shucai@gmail.com>
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      549cfe72
    • turneram's avatar
      Half v2plus (#731) · e4bc095e
      turneram authored
      
      
      * Added initial examples
      
      * Added python example from wiki
      
      * Edited readme
      
      * Added cpp interface files
      
      * Made changes to readmes
      
      * Added jupyter notebook for tf2 ex, added readme for tf1 ex
      
      * Added dockerfile
      
      * Re-structured driver example
      
      * Removed unnecessary files
      
      * Changed include path
      
      * Removed cpp_interface to rewrite
      
      * Added example of parsing, loading, saving with C++ API
      
      * Updated readme
      
      * Small code change, altered docker invocation, formatiing
      
      * Formatting
      
      * Added newline to end of dockerfile
      
      * Formatting
      
      * Formatting
      
      * Added C++ API inference example program
      
      * Formatting
      
      * Added README to cpp inference example
      
      * DeepCode suggested changed
      
      * DeepCode suggested change
      
      * Redesign python inference example
      
      * Address review comments
      
      * Address review comments
      
      * Address review comments
      
      * Added check for half version; conditionally ignore struct specialized for deprecated type
      
      * Moved new block after find_package(ROCM)
      
      * Rename HAVE_EXPR to HAVE_HALF_EXPR; relocated definitions
      Co-authored-by: default avatarPaul Fultz II <pfultz2@yahoo.com>
      Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
      e4bc095e
  19. 04 Feb, 2021 1 commit
    • Shucai Xiao's avatar
      Disable ort tests to pass jenkins (#742) · 37dc0327
      Shucai Xiao authored
      * disable some ort tests to pass jenkins build
      
      * update onnxruntime to a later version and run disabled tests sequentially
      
      * remove the command line to turn on some unit tests
      37dc0327
  20. 01 Feb, 2021 1 commit
    • Paul Fultz II's avatar
      Refactor pass tests (#736) · 0279acec
      Paul Fultz II authored
      * Update test for passes
      
      * Formatting
      
      * Rewrite simplify_reshapes
      
      * Formatting
      
      * Rewrite normalize pass
      
      * Formatting
      
      * Rewrite pooling
      
      * Formatting
      
      * Rewrite schedule tests
      
      * Formatting
      0279acec
  21. 29 Jan, 2021 2 commits
  22. 28 Jan, 2021 1 commit
  23. 20 Jan, 2021 1 commit
    • turneram's avatar
      Added initial examples (#672) · 7ecc003b
      turneram authored
      * Added initial examples
      
      * Added python example from wiki
      
      * Edited readme
      
      * Added cpp interface files
      
      * Made changes to readmes
      
      * Added jupyter notebook for tf2 ex, added readme for tf1 ex
      
      * Added dockerfile
      
      * Re-structured driver example
      
      * Removed unnecessary files
      
      * Changed include path
      
      * Removed cpp_interface to rewrite
      
      * Added example of parsing, loading, saving with C++ API
      
      * Updated readme
      
      * Small code change, altered docker invocation, formatiing
      
      * Formatting
      
      * Added newline to end of dockerfile
      
      * Formatting
      
      * Formatting
      
      * Added C++ API inference example program
      
      * Formatting
      
      * Added README to cpp inference example
      
      * DeepCode suggested changed
      
      * DeepCode suggested change
      
      * Redesign python inference example
      
      * Address review comments
      
      * Address review comments
      
      * Address review comments
      7ecc003b
  24. 19 Jan, 2021 1 commit
    • Shucai Xiao's avatar
      Logical ops (#718) · 4d46cbdb
      Shucai Xiao authored
      * add the and operator
      
      * clang format
      
      * add unit tests for the and operator
      
      * clang format
      
      * change the and name to logical_and and add the logical_or, logical_xor
      
      * clang format
      
      * add onnx unit tests for or and xor
      
      * add more unit tests
      4d46cbdb
  25. 18 Jan, 2021 2 commits
  26. 13 Jan, 2021 1 commit