Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dns test #4

Closed
wants to merge 122 commits into from
Closed

dns test #4

wants to merge 122 commits into from

Conversation

areusch
Copy link
Owner

@areusch areusch commented Mar 18, 2022

No description provided.

leeexyz and others added 30 commits February 14, 2022 14:14
This file is included every time TVM is build, regardless of whether
any support for Hexagon is enabled or not. This refactoring is meant
to remove underlying assumptions about what features are enabled and
what the compilation targets are. Now, when there is nothing needed
from Hexagon, the script exits early (although it doesn't need to),
and the rest of it is (and should remain) safe to execute regardless
of build configuration.

Disable "runtime.module.loadfile_hexagon" from the offload runtime,
since it conflicts with device_api.hexagon.v2.
It was only used with offload on Android, which is being deprecated.
* [Torch] Fix conv2d transpose with group

* lint

* wrong issue number

* do not run test on cuda
* upd

* upd

* upd

* lint

* fix

* upd docstring

* upd
…ailed. (apache#10244)

There is an error message to show the body when 'MatchCopyPattern' is failed,
but the error message not give the information why this function get failed.
Adding the detail error information to help trouble shooting.
lint.sh complain for an addtional space line in 'utils.cc', just fix it.
* wip

* revert for now

* simplify blocking

* add bench script

* update type rel

* refactor tests

* end to end compilation working

* paralleize outer loop

* add shape check

* fused schedule first cut

* restore original test

* black

* add vnni check

* add relay test

* skip on ci

* check dtype

* lint

* make it tunable

* minor cleanup
* hack to ExpandDataflow

* add test from mei

* Update DeviceAnalyzer to inherit from MixedModeVisitor

* indent
* 0;276;0cinitial commit

* register a bunch of ops

* unary ops

* add a bunch of tests

* 0;276;0crefactor tests

* add tests to qnn

* comments on macros

* add back in log to pattern utils

* update floating point func description

* proper creating of calls to quantize and dequantize

* fix lowering process for using dequantize and quantize ops
* Fix spacing

* Add try..finally everywhere

* trigger ci

* Fix pytest invocations

* Remove junit collection where no files exist

Co-authored-by: driazati <driazati@users.noreply.github.com>
* Fix bug

* Fix whitespace

* lint

* Move the other consts out of PoolInfo
…e#10259)

* [Hexagon] Don't use cmake glob for auto-generated source files

Glob treats inputs as patterns: if the file with a given name
does not exist (is to be generated later), it won't be added to
the output.

* Restart CI
* [RPC] Link in whole archive with BUILD_STATIC_RUNTIME

* Restart CI
Co-authored-by: pfk-beta <this_email_isnot_working@gmail.com>
Co-authored-by: pfk-beta <this_email_isnot_working@gmail.com>
* upd

* simplify

* upd

* fix

* upd

* fix docstring
See apache#10275

cc @masahi

Co-authored-by: driazati <driazati@users.noreply.github.com>
Required to pass `test_cuda_bf16_vectorize_add` in `tests/python/unittest/test_target_codegen_cuda.py`.
…ache#10256)

* Add an end_to_end benchmarking argument to TVMC run.

* Add command line test.

* Fix comment syntax.

* Set device to cpu if end_to_end is on.

* Tickle CI
This adds `$TVM_LIBRARY_PATH` to the search directory of
`vta.libinfo.find_libvta`, matching the behavior of
`tvm._ffi.libinfo.find_lib_path`.
* [microNPU] Add support for LeakyReLU

Adds support for offloading an int8 Leaky ReLU activation function
to the NPU by legalizing to a LUT.

Change-Id: I63dd5b16a1a2a747b11f15a5b8124810e2ebf491

* refactor LeakyReLUParams to inherit from LutActivationParams

Change-Id: I35b59200b16a7eff1915f771ab6b5d9181d4f3ab
…e#10277)

* Use /usr/bin/env bash in shebang

This makes scripts executable on system without /bin/bash (NixOS)

* Use `set -e` in script instead of `bash -e` in shebang
* Add a conversion of individual operations in FQ2I pass.

* apply review comments

* apply review comments 2
* removed include header path, which are invalid

* 1. added target tvm in a cmake export group
2. added cmake package config file

* added Threads as public dependency

* changed temp config file name for better understanding
vvchernov and others added 25 commits February 26, 2022 05:46
…ndex or name (apache#10293)

* set_input_with_index was implemented for VM

* clean code

* add getInputIndexFromName. add function descriptions. lint fix

* fix lint

* transfer comparison of parameter names number and assigned devices number to VMFunction constructor

* add GetVMFunctionWithName to Executable API

* clean code

* add SetInputWithName (set_input_with_name) to VM API

* join SetInputWithIndex and SetInputWithName to SetOneInputTensor (set_one_input) to VM API, the joined methods were removed

* fix lint

* some fixes after review

* add set_one_input method to python API of VirtualMachine

* pytests for set_input and set_one_input methods of VirtualMachine were implemented and checked

* CI restart

* construct simple model for pytests by relay instead of onnx tools (need for correct CI)

Co-authored-by: Valery Chernov <valery.chernov@deelvin.com>
…he#10381)

Strlen is not constexpr everywhere, so replace it with sizeof.
In C++ sizeof("string") works fine, since "string" has type
"const char [...]".
 * This module does not need to be exported, since it is merely a C++
   wrapper around get_c_metadata, and get_metadata is not used in C.
@areusch areusch closed this Mar 18, 2022
areusch pushed a commit that referenced this pull request Sep 20, 2022
* Add initial IRBuilder.

* Add function output to irbuilder; update based on new AST.

* Add call method; clean up bindings

* Add test.

* Add multifuction test

* Move implementation to C++; infer shape and type

* update op python hook

* More tests and bug fix

* Add comments.

* Update shape/type inference.

* Restructure code; add python type hint.

* Cleanup code.

* Rebase; address comments.

* Add call intrinsic.

* nits.

* Remove call op.

* Migrate scope to C++ using tvm::With.

* Address naming.

* Add GetBlocks API.

* Unify EmitOutput APIs; add more comments.

* Remove shape and type deduction code.

* Also remove the shape/type attr interface.

* Address comments.

* Differentiate global and local function.

* Reset counter after building func/block.

* Rebase.

* Remove shape infer builtin.

* Return from void function as empty tuple.

Co-authored-by: Michalis Papadimitriou <mikepapadim@hotmail.com>
areusch pushed a commit that referenced this pull request Feb 24, 2023
* Add initial IRBuilder.

* Add function output to irbuilder; update based on new AST.

* Add call method; clean up bindings

* Add test.

* Add multifuction test

* Move implementation to C++; infer shape and type

* update op python hook

* More tests and bug fix

* Add comments.

* Update shape/type inference.

* Restructure code; add python type hint.

* Cleanup code.

* Rebase; address comments.

* Add call intrinsic.

* nits.

* Remove call op.

* Migrate scope to C++ using tvm::With.

* Address naming.

* Add GetBlocks API.

* Unify EmitOutput APIs; add more comments.

* Remove shape and type deduction code.

* Also remove the shape/type attr interface.

* Address comments.

* Differentiate global and local function.

* Reset counter after building func/block.

* Rebase.

* Remove shape infer builtin.

* Return from void function as empty tuple.

Co-authored-by: Michalis Papadimitriou <mikepapadim@hotmail.com>
areusch pushed a commit that referenced this pull request Feb 24, 2023
* [IR] Introduce StructInfo

* StructInfoFunctor and Analysis Support

* [TVMScript] Parse type/shape annotation with StructInfo

* remove runtime type assign

* Remove type/shape during parsing (#2)

* Normalizer prep: simple checks and legacy function renaming.

* Struct info deduction in BlockBuilder.

* Two TODOs

* StructInfo Normalizer Fixes (#3)

* StructInfo AST Fix

* Fix Extern Func Deduction and shape mutator.

* Update VoidStructInfo & globalvar (#4)

* Fix passes and proper sinfo propagation.

* Refactor EraseToWellDefined to Enable Remapping

* [WIP] First stab at symbolic param tracking

* Update EraseToWellDefined to support symbolic shape return (#5)

* fix R.shape with ndim (apache#6)

* Remove update shape/type

* Address review comment, AnnotateTypeShape=>AnnotateStructInfo

* Update include/tvm/script/ir_builder/relax/frame.h

Co-authored-by: Ruihang Lai <ruihangl@cs.cmu.edu>

* Address comments

* Update printer to use structinfo (apache#7)

* Update Error mechanism to prep for obj loc based reporting

* Symbolic shape aware function call return value derivation.

The main flow works as follows:
- Match and populate shape_var_map and var_map by visit each pair of
  param and call arguments.
- Call EraseToWellDefined to map the ret parameter to new result.

* [ANALYSIS] Refactor well-form to only look at struct info.

* Update comments according to reviews.

* Update include/tvm/relax/struct_info.h

Co-authored-by: Ruihang Lai <ruihangl@cs.cmu.edu>

Co-authored-by: Siyuan Feng <Hzfengsy@sjtu.edu.cn>
Co-authored-by: Tianqi Chen <tqchen>
Co-authored-by: Ruihang Lai <ruihangl@cs.cmu.edu>
areusch pushed a commit that referenced this pull request Feb 24, 2023
[BugFix][UMA] Protect target registration (apache#13624) (#4)

This PR address fixes for UMA target registration.
* Fix the doc issue apache#13304
* Continues stalled PR apache#12731

Changes:
* Incorporates all proposed fixes from mentioned [PR apache#12731](apache#12731)
* Address test case concerns and discussions from [PR apache#12731](apache#12731)
* **NEW:** Already exiting target cannot be created, explicit error on this.
* **NEW:** Attributes having special/reserved scope cannot be created explicitly.

It also address proper test cases for all the above.

Signed-off-by: tqchen <tianqi.tchen@gmail.com>
Co-authored-by: Balint Cristian <cristian.balint@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.