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
f41abee5
Commit
f41abee5
authored
May 16, 2019
by
Shucai Xiao
Browse files
code backup
parent
5246b8d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/include/migraphx/op/capture.hpp
src/include/migraphx/op/capture.hpp
+2
-2
src/quantization.cpp
src/quantization.cpp
+1
-1
No files found.
src/include/migraphx/op/capture.hpp
View file @
f41abee5
...
@@ -23,14 +23,14 @@ struct capture
...
@@ -23,14 +23,14 @@ struct capture
template
<
class
Self
,
class
F
>
template
<
class
Self
,
class
F
>
static
auto
reflect
(
Self
&
self
,
F
f
)
static
auto
reflect
(
Self
&
self
,
F
f
)
{
{
return
pack
(
f
(
self
.
f
,
"func
"
));
return
pack
(
f
(
self
.
ins_index
,
"instruction_index
"
));
}
}
std
::
string
name
()
const
{
return
"capputure"
;
}
std
::
string
name
()
const
{
return
"capputure"
;
}
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
{
return
inputs
.
front
();
}
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
{
return
inputs
.
front
();
}
argument
compute
(
const
shape
&
output_shape
,
std
::
vector
<
argument
>
args
)
const
argument
compute
(
const
shape
&
,
std
::
vector
<
argument
>
args
)
const
{
{
f
(
ins_index
,
args
);
f
(
ins_index
,
args
);
return
args
.
front
();
return
args
.
front
();
...
...
src/quantization.cpp
View file @
f41abee5
...
@@ -107,7 +107,7 @@ void quantize(program& prog) { quantize(prog, {"all"}); }
...
@@ -107,7 +107,7 @@ void quantize(program& prog) { quantize(prog, {"all"}); }
std
::
vector
<
std
::
vector
<
argument
>>
ins_args
;
std
::
vector
<
std
::
vector
<
argument
>>
ins_args
;
void
capture_args
(
std
::
size_t
ins_index
,
std
::
vector
<
argument
>
args
)
void
capture_args
(
std
::
size_t
ins_index
,
std
::
vector
<
argument
>
args
)
{
{
if
(
ins_index
=
ins_args
.
size
())
if
(
ins_index
=
=
ins_args
.
size
())
{
{
ins_args
.
push_back
(
std
::
vector
<
argument
>
{});
ins_args
.
push_back
(
std
::
vector
<
argument
>
{});
}
}
...
...
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