Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
GPT2_onnxruntime
Commits
4c121fb5
Commit
4c121fb5
authored
Jul 12, 2023
by
yangql
Browse files
Update GPT2.cpp
parent
a2b41d78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Src/GPT2.cpp
Src/GPT2.cpp
+2
-2
No files found.
Src/GPT2.cpp
View file @
4c121fb5
...
...
@@ -46,7 +46,7 @@ ErrorCode GPT2::Initialize()
static
bool
CompareM
(
Predictions
a
,
Predictions
b
)
{
return
a
.
predictionvalue
>
b
.
predictionvalue
;
return
a
.
predictionvalue
>
b
.
predictionvalue
;
}
long
unsigned
int
GPT2
::
Inference
(
const
std
::
vector
<
long
unsigned
int
>
&
input_id
)
...
...
@@ -117,4 +117,4 @@ ErrorCode GPT2::Preprocessing(cuBERT::FullTokenizer tokenizer,
}
return
SUCCESS
;
}
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment