Граф коммитов

2622 Коммитов

Автор SHA1 Сообщение Дата
Marcus Shawcroft ce90f0d0ee [CI] Fix shell script exit codes (#3329)
The exist code of a posix compilant shell is 0..255.  Attempting to
return -1 will error in some shells and implicitly cast to 255 in
others.  Fix it by returning a legal return value.
2019-06-10 11:01:58 -07:00
Marcus Shawcroft 474b56834e Drop trailing whitespace (#3331) 2019-06-10 11:01:10 -07:00
Marcus Shawcroft e3d2928040 [DOC] minor gramatical improvements to tensor_expr_get_started (#3330) 2019-06-10 09:24:22 -07:00
Luis Vega 30f757eda1 add another default location to verilator (#3324) 2019-06-09 16:41:22 -07:00
Alexander Pivovarov 084e338e12 Add MUL operator to relay tflite frontend (#3304) 2019-06-09 16:24:11 -07:00
Yao Wang 98a91af993 Improve non_max_suppression and get_valid_counts for CPU (#3305)
* Improve non_max_suppression for CPU

* Improve get_valid_counts

* Minor change

* Skip some unnecessary computes
2019-06-09 22:34:56 +02:00
Nick Hynes a4bc50ebff
[Rust] Static syslib (#3274) 2019-06-08 20:56:58 -07:00
Luis Vega 73358be5bc [VTA] [APPS] [TSIM] update documentation (README) (#3318)
* update README

* update README

* update README

* update README

* fix typo
2019-06-08 15:00:31 -07:00
Ligeng Zhu bd244ebd8d Make the behavior of data nullptr check of pooling layer same as others. (#3322) 2019-06-08 09:17:29 -07:00
Tianqi Chen 4cee98ba6c
[PASS][RELAY] polish pass infra (#3319) 2019-06-07 14:38:57 -07:00
Marcus Shawcroft ca017a38f3 [CI] Ensure rat ignores rust cargo lock files [CI] Ensure rat ignores emacs backup files [CI] Ensure rat ignores .egg-info (#3314) 2019-06-07 12:52:00 -07:00
Marcus Shawcroft 08890e4d8a [DOC] minor language use improvements (#3317) 2019-06-07 12:51:14 -07:00
Marcus Shawcroft a7af3ef441 [LINT] Improve robustness in task_lint.sh logic (#3315)
The existing RAT ASF license auditing logic ignores any failure in the
shell pipeline rather than just the exit code of the final grep.
Adjust the logic such that failure of the various tools in the
pipeline are not elided away.
2019-06-07 09:07:36 -07:00
Marcus Shawcroft ef14257766 [DOC] Capitalize TVM consistently (#3316) 2019-06-07 09:07:03 -07:00
Alexander Pivovarov f33b9eae4b Fix some typos in api docs (#3309) 2019-06-07 00:01:01 -07:00
Luis Vega df16182bd8 [VTA] add doc to tsim-example driver and update verilator env variable (#3302)
* add documentation and check for extension

* add env variable for verilator include

* fix typo

* this will test if path exist otherwise it won't buid

* check if verilator path and binary is set properly

* add ?

* remove export

* no longer needed
2019-06-07 01:52:06 -05:00
Pedro Larroy c4763cd5ee Minor improve to assertion (#3295) 2019-06-06 15:14:11 -07:00
Yao Wang d7bc4fdd47 Fix x86 depthwise conv2d alter_op_layout (#3264)
* Fix x86 depthwise conv2d alter_op_layout

* Small fix

* Add test case

* Fix test

* Assert kernel layout

* Minor fix

* Add get_shape function

* Minor change
2019-06-06 11:41:50 -07:00
Alexey Romanov 770ac84e74 [Relay][Frontend] Simplify parameter handling in Tensorflow frontend (#2993) 2019-06-06 11:00:19 -07:00
Luis Vega 5999f7a6d8 [VTA] [APPS] [TSIM] small naming fix (#3293)
* make off lowercase

* update README
2019-06-05 22:03:12 -07:00
Yao Wang 9164809ce0 Improve x86 roi align (#3296)
* Improve roi_align performance for x86

* Change test
2019-06-06 12:42:19 +08:00
Przemyslaw Tredak 88163ec1ab Ghost nodes in NNVM graph (#3290) 2019-06-05 16:27:16 -07:00
hlu1 165aa0dbbd fast tanh (#3255) 2019-06-05 16:23:11 -07:00
Ramana Radhakrishnan 29b0b4c11d Add support for overloading comparison operations in relay (#2910) (#3168) 2019-06-05 10:19:13 -07:00
Luis Vega 32f74f31c8 [VTA] [Hardware] Chisel implementation (#3258) 2019-06-05 10:17:11 -07:00
abergeron 1f62d9561c More fixes and tweaks to the cuda conda packages (#3281) 2019-06-05 10:14:12 -07:00
Alexander Pivovarov d8132c5516 Improve error message for custom tflite operators (#3284) 2019-06-05 09:29:43 -07:00
Jared Roesch 95ab85d002 [Relay][VM] Fix code generation for packed functions + tuples (#3287) 2019-06-05 09:28:52 -07:00
Leyuan Wang f2ddb1961c [IR] Try to improve nms and get_valid_count (#3282)
* improve nms

* add back get_valid_count syncs
2019-06-05 11:32:31 +08:00
ziheng befd8c1e48 [LANG] Comparison operators support for Imm expressions (#3283) 2019-06-04 16:56:38 -07:00
Haichen Shen 072f8cc75e [Relay/TOPI][Op] Add TopK operator (#3256)
* init impl for topk

* Fix cpu for topk

* init cuda impl for topk

* Add cuda for topk

* fix

* Add doc

* update doc

* lint

* lint

* lint

* x

* fix warning

* [Relay] Add TopK in tf converter

* Add frontend converter

* fix
2019-06-04 16:29:56 -07:00
Josh Pollock 4204544b8b [Relay][Docs] Add parser dependency install instructions. (#3277)
* [Relay][Docs] Add parser dependency install instructions.

See https://discuss.tvm.ai/t/trouble-enabling-antlr/2783.

* Add a word.

* Update since the parser will now be committed to the repo.

* revert b/c adding the parser doesn't fix this
2019-06-04 13:28:35 -07:00
Hua 38604d9265 [Bugfix] [VTA] VTA DRAM Have A Logic Issue May Cause GEMM Output Wrong. (#3278)
* [Bugfix] [VTA] VTA DRAM Have A Logic Issue May Cause GEMM Output Wrong.

Symptom:
after change “LOG_BLOCK_IN” and “LOG_BLOCK_OUT” from vta_config.json
into 7, run vta "Simple Matrix Multiply" in "simulator", the vta
calculate result for GEMM is wrong.

Sometime VTA crash with error “Check failed: phy_addr != 0 (0 vs. 0) :
trying to get address that is nullptr”

Analysis:
Simulator hardcode kPageSize into 1<<12 and physical address calculate
based on this size, when doing “insn->dram_base” calculation , because
GetElemBytes(dst_memory_type) larger than page size, different physcial
address may get same dram_base, than caused logic issue and finally
trigger GEMM out put is wrong.

Solution:
add logic to check if PAGE SIZE larger then "GetElemBytes" return value.

* address review comments.
2019-06-04 09:47:29 -07:00
Jared Roesch 58e15fe10f Bump ONNX version (#3286) 2019-06-04 08:42:46 -07:00
Sergei Grechanik 4a81086684 [ARITH] Bugfix: int bound analysis for mod (#3288) 2019-06-04 08:42:27 -07:00
Zhi bb48a45bcf [RELAY][TRANSFORM] Migrate buildmodule to transform (#3251) 2019-06-03 10:40:38 -07:00
Sergei Grechanik 0faf7310d9 [ARITH] Bugfix: check arg positiveness for mod rules (#3279) 2019-06-03 08:52:31 -07:00
Alexander Pivovarov fc2b2a0730 Update tflite tutorial to use TFLite r1.13 schema (#3271) 2019-06-01 11:16:16 -07:00
Zhi 887255a8c2 [relay][heterogeneous] annotate using visitor (#3261)
* annotate using visitor

* retrigger CI
2019-06-01 00:53:18 -07:00
Hua f6acf2e5f5 [Bugfix][VTA] PkgConfig cause crash in PYNQ board due to link library (#3257)
* [Bugfix][VTA] PkgConfig cause crash in PYNQ board due to link library
not exist.

Symptom:
When run vta_get_started.py with pynq board, host crash and
complain "cannot find -lsds_lib" and "cannot find -l:libdma.so"

Reproduce:
At pynq board, delete the ./build/vta_config.json, then run rpc
server.
In host machine run vta_get_started.py, issue would reproduce.

Analysis:
This issue caused by 'PkgConfig' function  still using pynq2.1
library which not exist in pynq2.4 anymore, when a "reconfig_runtime"
logic of rpc_server.py get triggered , the compile would failed due to
link library not exist.

Solution:
change the link library to libcma.so.

* [Document Change][VTA] Change pynq version from 2.3 into 2.4.

Issue:
pynq 2.3 image not available anymore from pynq download page and pynq
2.4 is the current latest image which available in the said website, after
verification, currently VTA work good with pynq 2.4 image, hence update
related document from pynq 2.3 to 2.4.
2019-05-31 21:42:15 -05:00
Logan Weber 1fdf111388 Enable uTVM in Jenkinsfile (#3269) 2019-05-31 12:21:36 -07:00
Animesh Jain 1f4ec9e221 [Relay][Hashing] Structural hash - incorporate the var type into its hash (#3267)
Currently, the BindVar function does not take Var type into account. This causes
two same graph structures with different var shapes to have same hash.
Structural hash is used for keeping track of which operators we have
already compiled. Because of this, two operators with different shapes end up
pointing to same compiled code. The failure is encountered at runtime, where the
expected input shape asserts are not met.
2019-05-31 01:29:54 -07:00
Tianqi Chen a184b32082
Jekyll (#3262) 2019-05-30 21:32:33 -07:00
hlu1 e5a2ef470c [Bugfix] Fix a memory leak in OpManager (#3263) 2019-05-30 21:11:25 -07:00
Balint Cristian 584a32aebd [Relay] Handle float16 constants & fix BatchNorm (#3260) 2019-05-31 10:12:56 +08:00
Yao Wang c8a0f524d9 [AutoTVM]Core functionality for Graph tuner (#2184)
* Add graph tuning

* Add tests

* Fix tests

* Fix pylint

* Small fix for docstring

* Minor fix

* Support fetching workload from relay expr

* Simplify benchmark layout transformation

* Add relay support

* Fix infer layout func name

* Refactor internal data representation

* Fix issues

* Add PBQP solver

* Fix layout transform check

* Add PBQPTuner test

* Fix lint

* Update tutorial

* Fix tutorial

* Fix lint

* Add relay test

* Remove nnvm since nnvm graph can be converted to relay function

* Modify benchmark layout wrt new layout_transform api

* Fix lint

* Update docstring for DP tuner

* Refactor traverse graph

* Support graph tuning for multiple target operators

* Fix fetching workloads

* Add x86 depthwise_conv2d infer_layout

* Fix x86 depthwise_conv2d autotvm

* Fix PBQP tuner

* Fix DP tuner

* Generate dummy layout transform record

* Update tutorial

* Modify layout records name

* Add ASF header

* Add ASF header for testing files

* Fix test

* Fix topi fetching

* Some refactors

* Fix lint

* Fix tutorial

* Rename test files

* Fix doc typo

* Add test case note link
2019-05-29 16:36:05 -07:00
Hua 4767554c58 [BugFix][VTA] Fix vta_conv2d crash issue after change vta_config.json configuration. (#3213)
Issue:
Once change LOG_BLOCK_IN or LOG_BLOCK_OUT into > 4 value, when run vta
“Simple Matrix Multiply” or load vta, vta would crash at vta_conv2d.py.

Analysis:
This issue caused by resnet18 logic of vta_conv2d.py which have
in_filter minmum size that is 16. > 4 value would cause such in_filter
check failed then make xfer_size be empty and find_schedules function
return a empty list finally cause crash.

Solution:
add the empty list check.
2019-05-29 10:32:47 -07:00
Tianqi Chen 953ca1f6c8
[C++] Cleanup transform API nits (#3253) 2019-05-28 18:12:17 -07:00
masahi a8275bdbfb [TOPI] Fix resize nearest with fractional scaling (#3244) 2019-05-28 15:20:58 -07:00
Nick Hynes a479432d90 [RUST] Rust DSO module (#2976) 2019-05-28 15:20:18 -07:00