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

Fix static runtime sigrid_hash precomputed multiplier pass #6157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions torch_glow/src/ShapeInferenceEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3437,16 +3437,17 @@ ShapeInferenceEngine::argmin(const MetaStack &variableMetas) {
* int salt,
* int maxValue,
* Tensor multiplier_shift,
* bool hashIntoInt32
* bool hashIntoInt32,
* bool? noHashNegSalt
* ) -> Tensor
*
*
*/
Expected<TensorOutput>
ShapeInferenceEngine::sigridHashPrecompute(const MetaStack &variableMetas) {
RETURN_ERR_IF_NOT(
variableMetas.size() == 5,
strFormat("Expected 5 inputs, got %zu", variableMetas.size()));
variableMetas.size() == 6,
strFormat("Expected 6 inputs, got %zu", variableMetas.size()));

TensorShape shape = variableMetas[0].shape<TensorShape>();

Expand Down
Loading