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
7bd6d171
Commit
7bd6d171
authored
Nov 30, 2023
by
Paul
Browse files
Format
parent
ab86abd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/module.cpp
src/module.cpp
+4
-4
src/onnx/parse_range.cpp
src/onnx/parse_range.cpp
+1
-1
No files found.
src/module.cpp
View file @
7bd6d171
...
@@ -1052,10 +1052,10 @@ void module::calc_implicit_deps(const module& smod,
...
@@ -1052,10 +1052,10 @@ void module::calc_implicit_deps(const module& smod,
}
}
const
auto
&
mod_args
=
ii
->
module_inputs
();
const
auto
&
mod_args
=
ii
->
module_inputs
();
for
(
const
auto
*
ssmod
:
mod_args
)
for
(
const
auto
*
ssmod
:
mod_args
)
{
{
calc_implicit_deps
(
*
ssmod
,
pmod
,
ins
,
deps
);
calc_implicit_deps
(
*
ssmod
,
pmod
,
ins
,
deps
);
}
}
}
}
}
}
...
...
src/onnx/parse_range.cpp
View file @
7bd6d171
...
@@ -57,7 +57,7 @@ struct parse_range : op_parser<parse_range>
...
@@ -57,7 +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