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
7d248d46
"official/projects/nhnet/trainer.py" did not exist on "68dc253ea8273b0907cd36a45a5b78e3f6d2d024"
Commit
7d248d46
authored
Oct 19, 2021
by
Paul
Browse files
Fix tidy issues
parent
e72668cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/mlir.cpp
src/mlir.cpp
+2
-2
No files found.
src/mlir.cpp
View file @
7d248d46
...
...
@@ -21,7 +21,7 @@
namespace
migraphx
{
inline
namespace
MIGRAPHX_INLINE_NS
{
template
<
class
T
,
class
F
,
F
f
>
template
<
class
T
,
class
F
,
F
f
>
// NOLINT
struct
mlir_handle
{
struct
ptr
...
...
@@ -177,7 +177,7 @@ struct mlir_program
}
MlirAttribute
attribute
(
std
::
uint64_t
i
)
const
{
return
attribute
(
std
::
int64_t
(
i
));
}
MlirAttribute
attribute
(
unsigned
char
i
)
const
{
return
attribute
(
std
::
int64_t
(
i
));
}
MlirAttribute
attribute
(
bool
b
)
const
{
return
mlirBoolAttrGet
(
ctx
.
get
(),
b
);
}
MlirAttribute
attribute
(
bool
b
)
const
{
return
mlirBoolAttrGet
(
ctx
.
get
(),
b
?
1
:
0
);
}
MlirAttribute
attribute
(
double
d
)
const
{
return
mlirFloatAttrDoubleGet
(
ctx
.
get
(),
mlirF64TypeGet
(
ctx
.
get
()),
d
);
...
...
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