Commit Graph

2648 Commits

Author SHA1 Message Date
Alexander Pivovarov 7388715632 Fix _get_yolo_detections (#8477) 2021-07-16 10:26:25 -07:00
Chenfan cba9cf3d22 [VM] Fix the shape function of conv nhwc (#8480)
* Add dynamic support for conv2d nhwc
2021-07-16 20:22:36 +08:00
Masahiro Hiramori 2b57907d9e fix minor misspelling (#8476)
Co-authored-by: Masahiro Hiramori <mshr-h@users.noreply.github.com>
2021-07-16 09:57:27 +01:00
Y c263f22ffd [TVMC][FIX] Compiler supports input with a slash (#8481) 2021-07-15 23:08:58 -07:00
Raghav-Chakravarthy 5bb01ef8ea fix typo (#8484)
* fix typo

* Fixed typos in documentation
2021-07-15 23:08:10 -07:00
Josh Fromm ce15ca65ef [Relay][Frontend][ONNX] Allow importing models with malformed Loop nodes. (#8475)
* Snapshot

* Undo comments.

* Add testing for malformed loop nodes.

* Format oops.
2021-07-15 12:13:21 -06:00
Egor Churaev bd88ee28bb Fix auto-scheduling after 9c6658721 (#8478) 2021-07-15 09:26:13 -07:00
AndrewZhaoLuo 8a8c9b29ee [AMP] Add default op attribute registration to __init__.py (#8460)
* add attribute registration to init

* blackify

* remove unused improt

* jostle ci

* avoid circular import

* change order to match orig

* other things

Co-authored-by: Andrew Zhao Luo <andrewzhaoluo@system76-pc.localdomain>
2021-07-15 14:32:40 +09:00
Josh Fromm 11c5b6d18f [Relay][Onnx][Frontend] Add RandomUniform converter and tests to onnx frontend. (#8426)
* Add RandomUniform converter and tests to onnx frontend.

* Fix comments.

* Remove weird import.

* Add test against golden array.

* Retrigger CI

* Improve test comment.

* Retrigger CI.
2021-07-15 11:03:26 +08:00
Josh Fromm e1b3ff4ae3 [Relay][Frontend][ONNX] Add ConvInteger support. (#8456)
* Add ConvInteger support and fix some ConvTranspose padding bugs.

* Simplify pads check.

* Fix style.

* Remove changes to conv_transpose.
2021-07-14 09:19:59 -06:00
Cody Yu 5c1a1cf728 [CUDA] Improve injective schedule to enable half2 (#8457)
* [CUDA] Improve injective schedule to enable half2

* lint

* fix

* trigger ci
2021-07-13 17:57:19 -07:00
Yuxiang Wei 73b38e894f [Fix] Explicitly retain __hash__ of StringImm (#8449)
* Fix missing `__hash__` of `StringImm`

* Make __hash__ a method

Co-authored-by: Cody Yu <comaniac0422@gmail.com>

Co-authored-by: Cody Yu <comaniac0422@gmail.com>
2021-07-14 06:33:12 +09:00
masahi 1a26733b8e [Refactor] Enforce attaching storage scope to PointerType (#8366)
* Add storage scope to ProducerRealize, always create a buffer with scope

* update schedule_ops.cc

* update schedule_postproc_to_primfunc.cc

* restore more realize_scope

This reverts commit b66c3baa54feeb8e34016713a1be21802b3296bf.

* make the default scope be "" instead of None in ir builder

* restore realize_scope visit in storage_flatten.cc

* update storage_access.cc

* make sure buffer var is of PointerType in ir builder

This reverts commit e650b6c24cabd52a073064e51c2e4fee816e88fd.

* enforce default storage scope of global

* added remap pass but does not work yet

* fixed all reduce issue

This reverts commit 8e20003c5325085ed22ee57180aca18644b3b5ab.

* simplify

* trying mitigation for aot test

* merge remaining changes from initial branch

* remove use of attr::storage_scope from codegen

* restore a visit to AttrStmt with attr::storage_scope in storage_rewrite

* disable check

* lint fix

* revert default scope to ""

* format

* fix volatile access to shared mem in lower all reduce

* fixed gpu coorporative load/store test

* pass storage scope to PointerType in tvm script parser

This reverts commit 99cfb9d18781dcfdea169d920450f9063ab18b6b.

* fixed tvmscript roundtrip test

* fixed tir flatten buffer test

* fixed test_tir_transform_hoist_if.py

* use storage scope global by default in aot_executor_codegen.cc

* add missing default storage scope in create_primfunc.cc

* restore StorageInfo struct in llvm backend

* UpdateStorageScope -> WithStorageScope

* fixed lower warp memory test

* GetStorageScope -> GetPtrStorageScope

* Enable storage scope invariant check in AttrStmt constructor

* remove GetPtrStorageScope and WithStorageScope from public header

* move RemapStorageScope to its own file

* add more method to RemapStorageScope

* update lower_thread_allreduce to use RemapStorageScope

* RemapStorageScope -> UpdatePointerStorageScope

* remove realize_scope from hybrid script

* removed realize_scope in schedule_ops

* remove realize_scope from schedule_postproc_to_primfunc

* remove remaining realize_scope usage from schedule_ops.cc

* remove realize_scope usage from storage_flatten.cc

* fixed test_tir_transform_lower_warp_memory.py following realize_scope removal

* Add storage scope to ProducerRealize, always create a buffer with scope

* update schedule_ops.cc

* update schedule_postproc_to_primfunc.cc

* restore more realize_scope

This reverts commit b66c3baa54feeb8e34016713a1be21802b3296bf.

* make the default scope be "" instead of None in ir builder

* restore realize_scope visit in storage_flatten.cc

* update storage_access.cc

* make sure buffer var is of PointerType in ir builder

This reverts commit e650b6c24cabd52a073064e51c2e4fee816e88fd.

* enforce default storage scope of global

* added remap pass but does not work yet

* fixed all reduce issue

This reverts commit 8e20003c5325085ed22ee57180aca18644b3b5ab.

* simplify

* trying mitigation for aot test

* merge remaining changes from initial branch

* remove use of attr::storage_scope from codegen

* restore a visit to AttrStmt with attr::storage_scope in storage_rewrite

* disable check

* lint fix

* revert default scope to ""

* format

* fix volatile access to shared mem in lower all reduce

* fixed gpu coorporative load/store test

* pass storage scope to PointerType in tvm script parser

This reverts commit 99cfb9d18781dcfdea169d920450f9063ab18b6b.

* fixed tvmscript roundtrip test

* fixed tir flatten buffer test

* fixed test_tir_transform_hoist_if.py

* use storage scope global by default in aot_executor_codegen.cc

* add missing default storage scope in create_primfunc.cc

* restore StorageInfo struct in llvm backend

* UpdateStorageScope -> WithStorageScope

* fixed lower warp memory test

* GetStorageScope -> GetPtrStorageScope

* Enable storage scope invariant check in AttrStmt constructor

* remove GetPtrStorageScope and WithStorageScope from public header

* move RemapStorageScope to its own file

* add more method to RemapStorageScope

* update lower_thread_allreduce to use RemapStorageScope

* RemapStorageScope -> UpdatePointerStorageScope

* remove realize_scope from hybrid script

* removed realize_scope in schedule_ops

* remove realize_scope from schedule_postproc_to_primfunc

* remove remaining realize_scope usage from schedule_ops.cc

* remove realize_scope usage from storage_flatten.cc

* fixed test_tir_transform_lower_warp_memory.py following realize_scope removal

* Address comments

* Remove blank line diff

Co-authored-by: Masahiro Masuda <masahi@129@gmail.com>
Co-authored-by: masa <masa@pop-os.localdomain>
2021-07-13 15:32:42 -04:00
Tristan Konolige f62917e3d4 [TOPI] Add support for arbitrary dtypes to CSRMV and CSRMM (#8437) 2021-07-13 12:21:39 -07:00
Yanming Wang 136f218965 [Relay][ONNX] Batch_matmul to dense optimization (#8440)
* [ONNX]Add batch_matmul to dense optimization

* Add extra check to avoid unnecessary reshape

Co-authored-by: Ubuntu <ubuntu@ip-172-31-14-16.us-west-2.compute.internal>
2021-07-13 11:08:35 -07:00
Tristan Konolige d67514bd60 [PROFILING] Use PAPI to collect hardware performance counters on CPU and CUDA (#7983)
* [PROFILING] Use PAPI to collect hardware performance counters on CPU and CUDA

This PR adds an optional dependency on PAPI
(https://bitbucket.org/icl/papi/) in order to collect hardware
performance counters on CPU and CUDA. These performance counters include
data like total cycles, instructions executed, and cache misses. Users
can control which performance counters are collected by setting the
TVM_PAPI_${DEVICE}_METRICS environment variable to a semicolon separated
list of metrics.

* Update CMakeLists.txt

Co-authored-by: Leandro Nunes <leandro.nunes@arm.com>

* move thread pool reset out of crt

* add docs

* comments

* formatting

* forgot one doc

* kDLGPU -> kDLCUDA

* Refactor API to more closely match pass instrument's.

* forgot files

* formatting

* more lint

* fix docs

* optional loading of papi metric collector in python

* more formatting

* fix check

* update docs and default value

* formatting

* addressing andrews comments

* fix docs

* address comments

* move shared initialization code into private function

* move most definitions from papi header to implementation file

Co-authored-by: Leandro Nunes <leandro.nunes@arm.com>
2021-07-13 09:52:44 -07:00
Michalis Papadimitriou 957cc12d6c [Relay] Modify create_executor to pass params (#8418)
* Overload create_executor to accept params

* [fix] Add stringdoc for new param in create_executor
2021-07-13 09:00:03 -07:00
Andrey Malyshev 807373c0bc Add qnn batch_matmul operator (#8401)
* Add qnn batch_matmul operator

- add support of the different out type for x86 batch_matmul

* Fix code style

* Add out_dtype to generic batch_matmul

* Restore fixe in batch_matmul for dynamic shapes

* Fix documentation for qnn.batch_matmul

* Remove debug code

* Modify zero point for qnn batch_matmul test
2021-07-13 14:18:21 +09:00
zhuwenxi d043cb962f [BugFix][TOPI] Fix the integer overflow problem of the scatter_nd op. (#8415)
* Fix the integer overflow problem of the scatter_nd op.

* Fix scatter_nd's crash problem:
1. Existing scatter_nd cuda implementation has a very large bound,
   which could overflow int32 range when input tensor shape is
   large enough;
2. The overflow could cause the if statement always evaluate to
   true, thus conducts invalid memory accesses;
3. We fix this problem in this commit by reducing the bound, the
   original large bound is not only unnecessary, but also degrading
   the performance; With this fix, scatter_op's performance improves
   100x on some cases.

Co-authored-by: wenxizhu <wenxizhu@tencent.com>
2021-07-12 20:57:16 -06:00
Michalis Papadimitriou 62adc779f4 [MyPy] Extend type checking and annotation for TIR (#8429) 2021-07-12 20:34:26 -04:00
schilkunda-amba 34240053f8 [Relay to onnx conversion][New ops] (#8436)
* [Relay to Onnx conversion]

* added support for Sigmoid op
* added unit test

* [Relay to Onnx conversion][Copy]

* added support for Copy op
* added unit test

* [Relay to Onnx conversion][Round]

* added support for Round op
* added unit test

* [Relay to Onnx conversion][Cast]

* added support for Cast op
* added unit test

* [Relay to Onnx testing]

* fixed formatting

* * fixed formatting issues

* * fixed formatting issue in onnx.py

* [Relay to Onnx conversion][Conv2d Transpose]

* Added support for conv2d transpose operator
* Added unit test case. Unit test is similar to the conv2d unit test.

* * Fixed formatting errors
2021-07-12 11:22:51 +09:00
schilkunda-amba c3558a1450 [Relay to onnx conversion fixes][Pool, Pad] (#8435)
* [Relay to Onnx conversion][Pool]

* added missing ceil_mode in average pool and max pool conversion

* [Relay to Onnx conversion][Pad]

* Fixed issue in Pad conversion: changed pad_value to input instead of attrs
* Refer to PR: https://github.com/apache/tvm/pull/7860
* Updated unit test for Pad
* Fixed some formatting errors
2021-07-12 11:22:43 +09:00
Anastasia Stulova 972d7b52d2 [Relay] Add support of conv2d with NHWC for Bifrost (#8430)
Reuse generic Mali strategy for conv2d with NHWC in
Bifrost target.
2021-07-10 14:51:07 +08:00
Matthew Brookhart bdfbc86260 fix flaky TF test (#8431) 2021-07-09 15:59:08 -07:00
Matt Welsh (OctoML) 6141cac635 Replace RuntimeError in _lookup_task with deferred error. (#8421)
* Replace RuntimeError in _lookup_task with deferred error.

This allows unknown tasks to be created (e.g., when parsing
autotvm log files) but not invoked.

* Format.

* Update python/tvm/autotvm/task/task.py

Co-authored-by: Cody Yu <comaniac0422@gmail.com>

Co-authored-by: Matt Welsh <mdw@mdw.la>
Co-authored-by: Cody Yu <comaniac0422@gmail.com>
2021-07-09 11:56:34 -07:00
Honghua Cao 513fcf4bb7 [TVMSCRIPT] TVMScript Parser support BufferSlice indices (#8408)
Co-authored-by: honghua.cao <honghua.cao@streamcomputing.com>
2021-07-09 14:33:23 -04:00
ERROR f692fc7b73 Improve XGBTuner document (#8428)
* chore: improve xgboost_tuner docstring

* chore: remove whitespace

Co-authored-by: Siwa <siboon@sertiscorp.com>
2021-07-09 13:50:07 -04:00
Y e51f5bb383 [TOPI] Bugfix for topi.prod (#8416) 2021-07-09 13:49:09 -04:00
Wang Yucheng 0fa4396129 [CUDA] dense_tensorcore/batch_matmul_tensorcore support int8/int4 (#8402)
* add int8/int tensorcore for dense/batch_matmul

* fix bug

* fix lint

* Apply suggestions from code review

Co-authored-by: Chenfan <jcf94@outlook.com>

* fix for reviewer

* fix lint

Co-authored-by: Chenfan <jcf94@outlook.com>
2021-07-09 17:40:40 +08:00
Cody Yu 4b67e9d36c [Bug] Fix x86 dense schedule extern ops (#8420)
* [Bug] Fix x86 dense schedule extern ops

* more

* lint
2021-07-09 11:33:38 +08:00
kueitang 53cb8aa02d [Frontend] Check LLVM enabled/installed (#8414)
-Some ops(ex:view) call infer_value when converting a model into Relay IR.
-If LLVM is not enabled, it leads to segementation fault.

Co-authored-by: kueitang <kueitang@qti.qualcomm.com>
2021-07-09 10:32:23 +08:00
Lunderberg ee65ab7a4a [PyLint] Minor updates to pass pylint locally. (#8424)
With either the ci_lint docker image, or the matched version of
pylint==2.4.4, I got two lint errors running locally that didn't show
up in the CI.  Fixing them.

Co-authored-by: Eric Lunderberg <elunderberg@octoml.ai>
2021-07-09 10:15:19 +08:00
Anastasia Stulova e7c5349ee0 [Relay] Add support of conv2d with NHWC for Mali (#8422)
* [Relay] Add support of conv2d with NHWC for Mali

Added template schedule for conv2d NHWC reusing similar strategy
as for NCHW layout. The schedule is also added to the
corresponding test that can be run to verify correctness.

* [Relay] Fix issue from pylint in conv2d for Mali
2021-07-09 10:10:27 +08:00
Anastasia Stulova 0b39af794d [Relay] Fix index order in conv2d computation for Arm CPU. (#8361)
When dilation is larger than value 1 in conv2d with NHWC
layout, the ordering of indexes when accessing data array
in computation of convolution appears to be incorrect.

'data_vec' is defined as

lambda n, oho, owo, kh, kw, ic, ohi, owi:

But accessed as

data_vec[n, oho, owo, kh, kw, ohi, owi, ic]

This patch fixes the order of indexes and modifies the test
so that it is suitable for running on an AArch64 CPU.
2021-07-08 22:05:57 +08:00
Chris Sullivan 9c66587218 Refactor the compile engine into a cleaner interface. (#7518)
Duplicate the CompileEngine interface.

Refactor the graph_runtime_codegen to invoke the new LowerTE pass

More changes

Things appear to be working

Some tracing to get Relay code to flow through too.

Disable some assertions as exp.

Tweak printing for now

Fix a few bugs: (#13)

1. Don't add relay main function to list of lowered TIR functions
2. Don't skip visiting call to relay function in graph runtime codegen

Remove debug prints.

Start refactoring

Split out shared data structures

Fix implicit duplicate decl of IsDynamic

Clean up handling of name + global prim fn

Clean up the code and debug issue introduced by previous hack

Clean up the debugging

Do C++ lint clean up

Update src/relay/backend/graph_executor_codegen.cc

Co-authored-by: Chris Sullivan <csullivan@octoml.ai>

Clean up handling of external functions

Add more error messages

More clean up

Update src/runtime/graph_executor/graph_executor.cc

Co-authored-by: Chris Sullivan <csullivan@octoml.ai>

Update src/runtime/graph_executor/graph_executor.cc

Co-authored-by: Chris Sullivan <csullivan@octoml.ai>

Update src/relay/backend/te_compiler.h

Co-authored-by: Haichen Shen <shenhaichen@gmail.com>

Update src/relay/backend/te_compiler.h

Co-authored-by: Haichen Shen <shenhaichen@gmail.com>

Fix

CR

More CR

Format

Fix lowering path for C++

Fix tests

Remove uncessary change

Clean up a few more things

CI fix

Fix the default context

Fix

Fix broken test cases

Update

Fix

WIP

Clean up storage data structures

WIP

WIP

Fix build errors

Remove TVMLower

Fix lint

Lint again

fix black

Move UpdateMainWorkspaceSize into te_compiler.cc

Fix link errors

Formatting

Change UpdateMainWorkspaceSize to return Map<String, FunctionInfo>

Workaround for GCC 5 error caused by enums in maps (GCC 5 is on i386 CI)

Testing how functions should be named

Lint

Change how function metadata is updated

Attempt to update aot_executor_codegen to use new StaticMemoryPlan instead of storage_device_map

Pass memory plan through LowerTE into UpdateMainWorkspaceSize so that we don't need to run GraphPlanMemory an extra time

Fix return in UpdateMainWorkspaceSize

Lint

Try to fix UpdateMainWorkspaceSize

Fix construction of static memory plan

Clean up code while debugging

Adding UpdateWorkspaceSize back

Add closure + call to UpdateFunctionMetadata (WIP)

UpdateFunctionMetadata builds; weird error with device ctx map though. Not sure if it came from this change or something else

Add some debugging of UpdateMainWorkspaceSize

Starting to move UpdateFunctionMetadata call to use process_fn infra

UWhat target should be passed to UpdateFunctionMetadata?

UpdateFunctionMetadata is not workinggg

Added some comments about UpdateFunctionMetadata for Jared

Fix the creation of function metadata

Try another stab at cleaning up the information

Fix

Port StorageInfo and StaticMemoryPlan data structure (#8297)

Restoring reshape opt

Fix tests

Caught a nasty typo from Lily, Map::Set does not mutate

Format

Disable stupid Google style warning

Rebase cleanup

Formatting

Add docstring for storage info

Black

Post rebase fix

Remove prints

Disable assert that doesn't make sense for now

Fix lint

Add copying attrs from relay node to graph node; still need to figure out how to do this in the case of global vars

Work with Lily to fix graph attrs

Try to figure out where extra arguments are coming from; fix merge

passes the profiling test

Clean up

Fix profile test

Remove debugging

Add attributes for BYOC uTVM case

Format

Dumb typo

Another fix for byoc

Format

Fix last 3 failing tests

Format

Fix final two test cases

Format

Fix lint

Fix again

Fix

Fix auto scheduler code

Fix issue

Address CR comment

Format

Co-authored-by: Jared Roesch <roeschinc@gmail.com>
2021-07-07 22:51:19 -07:00
chiwwang a4775c23cf [DOCS] Add docs for Pass Instrument (#8220)
* Fix AttributeError when TEST_DATA_ROOT_PATH is set

Initiate a Path object from TEST_DATA_ROOT_PATH to fix the error:
AttributeError: 'str' object has no attribute 'mkdir'

* [DOCS] Add docs for Pass Instrument

 - Add a tutorial about how to use pass instrument.
 - Add related sections in Pass Infrastructure documents.

* Fix ir.rst, the length of separator.

* Fix unused local name

* Fix linting errors

* Fix linting errors

* Fix linting errors

* Address code-review feedbacks

* Fix linting

* Fix the order of tutorial.

* Add exception handling. Address feedbacks.

* Fix CI error -- clearing instruments in global pass_ctx

* Clarify section hierachy.

* Emphasize to use decorator instead of subclassing

* Add a sentence to explain Pass Instrument. Fix typo.

* Shrink python docs a little.

* Fix tag name.

* Address feedbacks.
2021-07-07 11:03:24 -07:00
Kanghwan 26281792e9 [ONNX] Wrap 'If' if it has multiple outputs (#8385)
* [ONNX] Wrap 'If' if it has multiple outputs

Without this wrapper, an assertion in from_onnx() will fail with the
error message showing ""Number of output mismatch"

* [ONNX] Test If nodes with multiple output tensors

* Fix formatting issues
2021-07-07 13:28:23 +09:00
Yuchen Jin bd5cd9f1a4 [Fix] Update stale relay.Module API in docs/comments (#8411) 2021-07-07 11:42:17 +09:00
hsiehjackson ec471296d4 add aten::masked_fill_ in pytorch frontend (#8403)
Co-authored-by: Jackson Hsieh <chengpi@amazon.com>
2021-07-06 06:27:53 +09:00
Matthew Brookhart d3fc562a6f [Relay][TOPI] Resize 1D (#8346)
* rename resize to resize2d

* refactor resize_2d

* Add resize1d op, normalize attribute names across ops

* normalize resize3d to match the API of 1D and 2D

* fix lint

* fix relay tests from API change

* refactor topi tests, docs

* fix method naming in framework frontends

fix more frontend issues

* refactor resize tests to reuse components, add more coordinate tranform modes to tests

* add cubic resize reference kernel and tests, add relay tests for resize1d

* fix pylint

* fix test typo
2021-07-05 19:09:26 +09:00
delldu d17f75384d Support aten::flip (#8398)
* Support test aten::flip

* Support aten::flip
2021-07-04 11:33:49 +09:00
Wuwei Lin e32d47e9f5 [Arith] Inverse affine map (#8384)
* [Arith] Inverse affine map

* [Arith] Inverse affine map

* Update iter_affine_map.h

* Update iter_affine_map.h

* Update iter_affine_map.py

* Topology order visit

* doc

* fix

* address comments

* lint

* remove print
2021-07-04 09:59:16 +09:00
masahi e19e979c4b [Torch] Remove unused conversion (#8397)
* fix weight shape in torch.mm conversion

* Revert "fix weight shape in torch.mm conversion"

This reverts commit a1a8fd313c999060db675848f8b3de3e1c78e468.

* [Torch] remove unused conversion
2021-07-04 06:32:47 +09:00
Mehrdad Hessar 7e3f068373 [microTVM] Add Nucleo stm32l4r5zi board to zephyr (#8386)
* add stm32l4r5zi_nucleo

* add parameter for test qemu

* file type check

* fix test

* change order

* revert
2021-07-03 11:48:06 +01:00
Andrew Reusch 970aefffe9 Add "operator" style to Model Library Format (#8072)
* rename _update_target and document its function

* make tvm.build return OperatorModule to return multiple outputs

* allow retrieving the var names used in TIR repr

* add Operator Model Library Format and test

* Add pathlib convenience functions to utils.TempDirectory.

* fix tests

* black format

* git-clang-format

* pylint fixes

* add asf header

* change memory map to make more sense, fix tests

* address giuseros comments

* align GetVarName with future TypedPackedFunc

* fix test

* clang-format

* rev model library format to v4 (bad merge)
2021-07-02 23:10:55 +01:00
Ramana Radhakrishnan 7b898d058c Fix np.int and np.float usage in the tree. (#8389)
* Fix np.int and np.float usage in the tree.

Newer versions of numpy give loads of warnings that suggest
that np.int and np.float will be deprecated. CI uses pytest
and these warning logs clog memory for testing and make it
slower.

* Fix formatting
2021-07-02 15:28:45 -06:00
Egor Churaev 6f600f1a52 [Refactor] Remove dead code from depthwise_conv2d for Intel graphics (#8381)
After fix a66186b, I saw that it should be necessary to do the same fix
for depthwise_conv2d for intel graphics. I saw that we never used the
removed code and it is just the same code from
cuda/depthwise_conv2d.py. So we can use the cuda implementation when it
will be necessary.
2021-07-02 15:30:50 +09:00
Siyuan Feng 29e958d179 [TIR][TVMScript] specialize (#8354) 2021-07-01 14:46:49 -04:00
Christopher Sidebottom 9112b6e259 Allow tvmc to compile models with AOT executor in MLF (#8331)
* Allow tvmc to compile models with AOT executor

The tflite_compiled_model fixture was getting duplicated a few times so
I've added a parameterized fixture tflite_tvmc_compiler which combines
tmpdir_factory setup with compile_model

Nested targets broke a basic string split, so in cases where we use
nested targets I replaced the string split with shlex split

* Clarify that graph JSON is required only for graph executor

Plus other clean ups

* Change parametrize fixture to use string instead of list
2021-07-01 10:37:07 +01:00
Altan Haan 2e47947e58 [cuDNN] Add support for log_softmax (#8369)
* log_softmax strategy and cudnn impl

* add log_softmax cudnn test

* silence terrible pylint suggestion

* fix typo
2021-07-01 15:42:10 +09:00