Commit Graph

16 Commits

Author SHA1 Message Date
Black 1737308397 [WIP][Pylint] Making frontend tests pylint compliant (#12028)
* [CI] Apply linting rules to tf tests

* [CI] Apply linting rules to tflite tests

* [CI] Apply linting rules to coreml tests

* [CI] Apply linting rules to caffe tests

* [CI] Apply linting rules to caffe2 tests

* reformat by black

* reformat by black

* [CI] Apply linting rules to coreml tests

* [CI] Apply linting rules to darknet tests

* Update tests/python/frontend/coreml/test_forward.py

Co-authored-by: Sebastian Boblest <sebastian.boblest@etas.com>

* Update tests/python/frontend/tflite/test_forward.py

Co-authored-by: Sebastian Boblest <sebastian.boblest@etas.com>

* Update tests/python/frontend/coreml/test_forward.py

* Update tests/python/frontend/tflite/test_forward.py

* fix test errors

* fix ci test errors

* [CI] Apply linting rules to keras tests

* [CI] Apply linting rules to oneflow tests

* [CI] Apply linting rules to onnx tests

* replace with tvm.testing.main()

* fix conflict

* Update as @areusch suggest

* pylint pytorch/test_forward.py

* Update as @areusch suggest

* reformat by black

* fix redefined-outer-name lint errors

* remove rules

* remove rules & fix pylint errors

* Remove all unused_var and fix other pylint errors

* reformatted by black

* [CI] Apply linting rules to onnx tests

* Disable unused-argument is for some unused-argument in function can not be removed

* Fix ci errors

* reformatted by black

* Fix ci errors

* Fix invalid-name/unused-variable,redefined-builtin

* [CI] Apply linting rules to caffe tests

* [CI] Apply linting rules to darknet tests

* [CI] Apply linting rules to pytorch tests

* [CI] Apply linting rules to tflite tests

* reformat by black

* [Pylint] Making frontend tests pylint compliant Part 1 of N

* Fix ci errors

* Fix invalid-name pylint errors

* Fix invalid-name pylint errors

* Disabale temporarily

* Fix dangerous-default-value

* Fix typo errors

* Fix ci errors

* [CI] Apply linting rules to tensorflow tests

* Fix dangerous-default-value

* Fix ungrouped-imports

* [CI] Apply linting rules to tf tests

* [CI] Apply linting rules to tflite tests

* [CI] Apply linting rules to coreml tests

* [CI] Apply linting rules to caffe tests

* [CI] Apply linting rules to caffe2 tests

* reformat by black

* reformat by black

* [CI] Apply linting rules to coreml tests

* [CI] Apply linting rules to darknet tests

* Update tests/python/frontend/coreml/test_forward.py

Co-authored-by: Sebastian Boblest <sebastian.boblest@etas.com>

* Update tests/python/frontend/tflite/test_forward.py

Co-authored-by: Sebastian Boblest <sebastian.boblest@etas.com>

* Update tests/python/frontend/coreml/test_forward.py

* Update tests/python/frontend/tflite/test_forward.py

* fix test errors

* fix ci test errors

* [CI] Apply linting rules to keras tests

* [CI] Apply linting rules to oneflow tests

* [CI] Apply linting rules to onnx tests

* replace with tvm.testing.main()

* fix conflict

* Update as @areusch suggest

* pylint pytorch/test_forward.py

* Update as @areusch suggest

* reformat by black

* fix redefined-outer-name lint errors

* remove rules

* remove rules & fix pylint errors

* Remove all unused_var and fix other pylint errors

* reformatted by black

* [CI] Apply linting rules to onnx tests

* Disable unused-argument is for some unused-argument in function can not be removed

* Fix ci errors

* reformatted by black

* Fix ci errors

* Fix invalid-name/unused-variable,redefined-builtin

* [CI] Apply linting rules to caffe tests

* [CI] Apply linting rules to darknet tests

* [CI] Apply linting rules to pytorch tests

* [CI] Apply linting rules to tflite tests

* reformat by black

* [Pylint] Making frontend tests pylint compliant Part 1 of N

* Fix ci errors

* Fix invalid-name pylint errors

* Fix invalid-name pylint errors

* Disabale temporarily

* Fix dangerous-default-value

* Fix typo errors

* Fix ci errors

* [CI] Apply linting rules to tensorflow tests

* Fix dangerous-default-value

* Fix ungrouped-imports

* Fix boolean value of Tensor with more than one value is ambiguous

* Fix 'NoneType' object has no attribute 'shape'

* Fix boolean value of Tensor with more than one value is ambiguous

* reformatted by black

* [CI] Apply linting rules to caffe tests

* Fix dangerous-default-value

* Fix conflict & fix pylint error

* restore

Co-authored-by: Sebastian Boblest <sebastian.boblest@etas.com>
Co-authored-by: Andrew Reusch <areusch@gmail.com>
2022-08-12 16:01:55 -07:00
Grant Watson e854c0a4d6 [CI] Identify non-inclusive language in commits (#11230)
* Adds a script blocklint.sh that checks for non-inclusive words
  * Updates the task_lint.sh script to call blocklint.sh
  * Replaces the terms Master and Slave where possible
  * Replaces the terms Blacklist and Whitelist
2022-05-09 09:01:38 +01:00
driazati 96f701fd66 [ci] Don't diff Python files when checking formatting (#10895) 2022-04-06 09:25:22 +01:00
KennyTang1988 f2d60fe968 [Caffe Frontend] Add support for Power layer (#9655)
Co-authored-by: tangkun <kun.tang@hexintek.com>
2022-01-31 15:49:50 +09:00
zotanika 3c8de42a0b [Caffe Frontend] extending Eltwise to handle multiple inputs (#8136)
* [Caffe Frontend] adding Reduction op

* reformatting Reduction op test script

* reformatting Reduction test script

* [Caffe frontend] Reduction op
- adding more test cases; handling '0 < axis < num_axes - 1' case to give the result equivalent to Caffe framework
- skipping Relay multiplication if coeff is 1

Signed-off-by: zotanika <zotanika@gmail.com>

* linting test script

* linting

* [Caffe Frontend] Supporting multiple grouped(channel-wise) Deconv op

* Handling group > 1 cases, assuming group == output channels
* Decomposed into Relay split, transposed conv, and multi-leveled concatenation.
* Added some test cases.

Signed-off-by: zotanika <zotanika@gmail.com>

* [Caffe Frontend] supporting variable number of inputs for Eltwise

* extra handling of rest inputs for PROD, SUM, MAX operations
* extra testcases

Signed-off-by: zotanika <zotanika@gmail.com>

* formatting fix

* [Caffe Frontend] reverting codes related Reduction for splitting PR

* Revert "[Caffe Frontend] Supporting multiple grouped(channel-wise) Deconv op"

This reverts commit 43e25e552b790ce9a38fdbcfb3ddf2075c253e20.

* instant fix against docker format error

* instant fix against docker format error

* instant fix against docker format error
2022-01-17 11:36:51 +09:00
zotanika be0677d801 [Caffe Frontend] supporting group > 1 cases for Deconv op (#8260)
* [Caffe Frontend] supporting group > 1 cases for Deconv op

- Handling group > 1 cases, assuming group == output channels
- Simply decomposed into Relay split, conv2d_transposed, and multi-leveled concatenate ops
- Added some test cases

Signed-off-by: zotanika <zotanika@gmail.com>

* [Caffe Frontend] amending a test case for Deconv op

Signed-off-by: zotanika <zotanika@gmail.com>

* explicit importing tvm.testing

* changing split axis to 0, according to PR #9336
2022-01-17 11:36:12 +09:00
zotanika 920c3802a2 [Caffe Frontend] adding Reduction op (#8015)
* [Caffe Frontend] adding Reduction op

* reformatting Reduction op test script

* reformatting Reduction test script

* [Caffe frontend] Reduction op
- adding more test cases; handling '0 < axis < num_axes - 1' case to give the result equivalent to Caffe framework
- skipping Relay multiplication if coeff is 1

Signed-off-by: zotanika <zotanika@gmail.com>

* linting test script

* linting

* typo fix

Co-authored-by: sunchul.jung <sunchul.jung@samsung.com>
2022-01-13 09:47:18 +09:00
Masahiro Hiramori 39758e7aa7 [Caffe Frontend] Add support for Permute layer (#9157)
* Add support for Permute layer

* Add test for Permute layer

* Fix alignment
2022-01-13 09:45:56 +09:00
Tianqi Chen 137def8bf2 [TARGET] Move target_host usage to new target style. (#9497)
- Add deprecation warnings to functions with target_host parameters.
- Update the build usage to new target style.
2021-11-12 20:55:00 +08:00
shengxinhu 6219d19a68 [Caffe Frontend] Add support for Embed layer (#9257)
* [Caffe Frontend] Add support for Embed layer

* [Caffe Frontend] Add support for Embed layer
2021-10-23 09:21:14 +09:00
Haichen Shen 720e7b1ebd [Refactor] Rename asnumpy -> numpy in NDArray (#8083) 2021-05-21 08:32:27 -04:00
Andrew Reusch 9b43a646fc Rename GraphRuntime to GraphExecutor (#7653) 2021-03-29 20:07:21 -04:00
Haichen Shen fbfeee4ccb [Refactor] Rename TVMContext to Device (#7721) 2021-03-26 07:56:57 -04:00
Tianqi Chen c8064b3ca6 [REFACTOR] Remainings of util => utils (#6778) 2020-10-29 13:46:31 -04:00
Jared Roesch f13fed55cf [Format] Convert all Python code w/o CI (#6448)
* Add black setup

* Tweak pyproject.toml

* Fix syntax issues

* Fix

* Tweak

* Black all Python code
2020-09-11 22:17:24 +09:00
FernChen 44d97ad080 [Caffe Frontend] introduce caffe frontend for tvm (#6206)
* [Caffe Frontend] introduce caffe frontend for tvm.

* [Caffe Frontend] fix bugs for generating caption in tutorial.

* [Caffe Frontend] delete statement for python2 and modify the function name.

* [Caffe Frontend] change the directory which will hold the tmp files
when testing the caffe frondend.

* [Caffe Frontend] delete tutorial about caffe frontend.

* [Caffe Frontend] delete some print statements

Co-authored-by: fernchen <zifeng.cf@alibaba-inc.com>
2020-08-27 11:26:58 +08:00