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

[BUG] Need a "Fill" op #205

Open
weimingzha0 opened this issue Feb 25, 2021 · 0 comments
Open

[BUG] Need a "Fill" op #205

weimingzha0 opened this issue Feb 25, 2021 · 0 comments

Comments

@weimingzha0
Copy link
Collaborator

Describe the bug
Currently, HALO converts the fill op into constants by generating random data at compile time.

With the increase of batch size, the bin file will grow dramatically for some model.

To Reproduce

For example, for Bert model,
./bin/halo bert_frozen_model.pb -target cxx -disable-broadcasting -batch-size=1 -o bert1.cc
./bin/halo bert_frozen_model.pb -target cxx -disable-broadcasting -batch-size=2 -o bert1.cc

The second command will generate larger .bin file.

Expected behavior
The bin file size should remain constant.

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

No branches or pull requests

1 participant