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

5 Коммитов

Автор SHA1 Сообщение Дата
Lisa Ong d99d61d970
Initial verify_hat support for runtime arrays and elements (#65)
* support arbirtary pointer levels for declared types

* handle logical_type=element

* arg values

* refactor (func name, arg_info) to FunctionInfo

* fix circular imports

* .

* support dylib

* update verify_hat_package

* verify -> verify_args

* fixes

* fix verify_args

* formatting

* add verify hat test

* refactor

* handle ndarrays as arguments

* cleanup

* runtime_array verify test

* print output

* basic test passing

* Update test_create_simple_hat_file.py

* Update test_create_simple_hat_file.py

* comments

* comments

* TODOs

* nfc

* [test] moved creation to workdir

* rename

* Print output dimension references and clarify HAT schema (#66)

* infer shapes from size, add shape order requirement

* merged

* pretty print using cross references

Co-authored-by: Lisa Ong <onglisa@microsoft.com>

* revert formatting changes

* revert more formatting only changes

* simplify

* Add input and input/output runtime_array support (#67)

* wip

* scaffold

* scaffold and initial support for input elements and input/output runtime_arrays

* .

* fixups

* don't swallow exceptions

* support cargs for non pointer args

* cleanup

* refactor

* support integer-like types when checking constant shapes

* nfc

Co-authored-by: Lisa Ong <onglisa@microsoft.com>

* test coverage for  usage type Input and InputOutput

* [test] Support windows in verify_hat tests (#69)

* wip

* build for windows (#68)

Co-authored-by: Lisa Ong <onglisa@microsoft.com>

* windows tomlkit expects lists

* manual CI trigger

Co-authored-by: Lisa Ong <onglisa@microsoft.com>

* fix windows test

* fix logic and add comment

* .

* verify_args -> verify

* args -> arguments

* PR feedback

Co-authored-by: Lisa Ong <onglisa@microsoft.com>
2022-08-23 07:09:25 +08:00
Lisa Ong 9146a032b1
Add macOS to CI pipeline, restore HATPackage to accept a file path instead of a directory path (#13)
* restored hat package definition as a hat file + library

* [nfc] pydoc update

* update test condition

* replace test data files with runtime generation

* install test dependencies

* update whl test

* fix folder name

* export run_benchmark, support spaces in strings

* fixed add_functions to expect a single hat file

Co-authored-by: Lisa Ong <onglisa@microsoft.com>
2022-01-13 08:31:26 +08:00
Lisa Ong 4b171b1ff4
Create the hatlib PyPI package (#11)
* add missing test file

* initial seed package

* updated README links

* bump the post rev since we've uploaded once to PyPI

* rename: hat-lib -> hatlib, add scm versioning

* updated unit test instructions

* update pydoc

* disable local version for PyPI uploads

* add badges, links to tool docs

* renamed package.names as a property

Co-authored-by: Lisa Ong <onglisa@microsoft.com>
2022-01-12 07:52:25 +08:00
Lisa Ong 86a04303cf
Move benchmark_hat_package.py to the HAT repo (#10)
* moving benchmark_hat_package.py from Accera to hat

* backport fixes from Accera repo

* migrate README from Accera repo

* Update requirements.txt

* fix tests after backport

* cleanup

* replace deprecated function

* support debugging

* update readme

Co-authored-by: Lisa Ong <onglisa@microsoft.com>
2022-01-05 15:46:04 +08:00
microsoft-github-operations[bot] ff9cd76055
Initial commit 2021-01-12 14:31:31 +00:00