Commit Graph

6 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
Xiaoyu Zhang 87366b56ed Oneflow fronted support more model and fix bug (#11321)
* add relay.f.frontend.fm_oneflow support cnns

* support cuda

* fix mobilenetv2 and reviews

* fix: model without meta info

* support eager and yolo, add test

* fix: license

* add: tutorials

* fix: support new graph

* fix some comments

* refine

* fix concat op convert bug

* refine

* refine

* change cuda to cpu

* fix bug

* fix ci error in tvm

* fix pylint check

* delete useless file

* add skimage package in docker

* fix ci error

* fix bug

* add oneflow fronted test in ci

* merge conflict

* fix tutorial

* try to find error in ci

* revert

* merge conflict

* black oneflow

* Delete from_oneflow.py

* restruct oneflow fronted

* support vision-transformer

* black format

* update black version and reformat

* fix ci error

* fix doc error

* fix gpu fronted test failed

Co-authored-by: hhhfccz <hjk1938927583@163.com>
2022-05-15 04:50:25 +09:00
Xiaoyu Zhang bce57586bd Add oneflow fronted tutorials (#11036)
* add relay.f.frontend.fm_oneflow support cnns

* support cuda

* fix mobilenetv2 and reviews

* fix: model without meta info

* support eager and yolo, add test

* fix: license

* add: tutorials

* fix: support new graph

* fix some comments

* refine

* fix concat op convert bug

* refine

* refine

* change cuda to cpu

* fix bug

* fix ci error in tvm

* fix pylint check

* delete useless file

* add skimage package in docker

* fix ci error

* fix bug

* add oneflow fronted test in ci

* merge conflict

* fix tutorial

* try to find error in ci

* revert

* merge conflict

* black oneflow

* Delete from_oneflow.py

* fix bug when upgrade oneflow to 0.7.0

* add tutorials

* add tutorials

* try to fix

* fix bug

* add test

* fix bug

* fix flowvision bug

* Update test_forward.py

* Update test_forward.py

Co-authored-by: hhhfccz <hjk1938927583@163.com>
2022-04-23 12:38:36 +09:00
Masahiro Masuda 557fc6c107 Hotfix CI (black check not caught by PR CI) (#11056) 2022-04-19 13:36:11 +01:00
Xiaoyu Zhang fe948da88e Upgrad oneflow version (#11052)
* add relay.f.frontend.fm_oneflow support cnns

* support cuda

* fix mobilenetv2 and reviews

* fix: model without meta info

* support eager and yolo, add test

* fix: license

* add: tutorials

* fix: support new graph

* fix some comments

* refine

* fix concat op convert bug

* refine

* refine

* change cuda to cpu

* fix bug

* fix ci error in tvm

* fix pylint check

* delete useless file

* add skimage package in docker

* fix ci error

* fix bug

* add oneflow fronted test in ci

* merge conflict

* fix tutorial

* try to find error in ci

* revert

* merge conflict

* black oneflow

* Delete from_oneflow.py

* upgrad oneflow version to 0.7.0

* fix

* continue push

* continue push

Co-authored-by: hhhfccz <hjk1938927583@163.com>
2022-04-19 18:44:57 +09:00
JiaKui Hu 29774bddd8 [RELAY][FRONTEND] Initial OneFlow frontend support. (#8790)
* add relay.f.frontend.fm_oneflow support cnns

* support cuda

* fix mobilenetv2 and reviews

* fix: model without meta info

* support eager and yolo, add test

* fix: license

* add: tutorials

* fix: support new graph

* fix some comments

* refine

* fix concat op convert bug

* refine

* refine

* change cuda to cpu

* fix bug

* fix ci error in tvm

* fix pylint check

* delete useless file

* add skimage package in docker

* fix ci error

* fix bug

* add oneflow fronted test in ci

* merge conflict

* fix tutorial

* try to find error in ci

* revert

* merge conflict

* black oneflow

* Delete from_oneflow.py

Co-authored-by: Xiaoyu Zhang <35585791+BBuf@users.noreply.github.com>
Co-authored-by: BBuf <1182563586@qq.com>
2022-04-15 14:14:35 +09:00