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
gaoqiong
MIGraphX
Commits
3823ba2b
Commit
3823ba2b
authored
Nov 30, 2023
by
Paul
Browse files
One line
parent
7bd6d171
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/onnx/parse_range.cpp
src/onnx/parse_range.cpp
+1
-2
No files found.
src/onnx/parse_range.cpp
View file @
3823ba2b
...
@@ -57,8 +57,7 @@ struct parse_range : op_parser<parse_range>
...
@@ -57,8 +57,7 @@ struct parse_range : op_parser<parse_range>
auto
limit_val
=
limit
.
front
();
auto
limit_val
=
limit
.
front
();
auto
delta_val
=
delta
.
front
();
auto
delta_val
=
delta
.
front
();
size_t
num_elements
=
size_t
num_elements
=
ceil
(
static_cast
<
double
>
(
limit_val
-
start_val
)
/
static_cast
<
double
>
(
delta_val
));
ceil
(
static_cast
<
double
>
(
limit_val
-
start_val
)
/
static_cast
<
double
>
(
delta_val
));
assert
(
num_elements
>
0
);
assert
(
num_elements
>
0
);
...
...
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