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

Ort infernce bug #408

Merged
merged 4 commits into from
Dec 26, 2023
Merged

Ort infernce bug #408

merged 4 commits into from
Dec 26, 2023

Conversation

horheynm
Copy link
Member

Fix for shape computation.

Before:
dim_param: "batch" -> string not valid. Has to be a number

After:
dim_param: "batch" -> 1

(Pdb) proto
name: "input_ids"
type {
  tensor_type {
    elem_type: 7
    shape {
      dim {
        dim_param: "batch"
      }
      dim {
        dim_value: 2048
      }
    }
  }
}
dim_param: "batch"

dim_value: 1

dim_value: 2048

dim_param: "past_sequence_len + 1"

[1, 1, 2048, 1]

@bfineran bfineran merged commit 820e2c6 into main Dec 26, 2023
4 checks passed
@bfineran bfineran deleted the v2/analysis-bug-fix-ort branch December 26, 2023 19:33
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.

2 participants