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
97b9aee5
Commit
97b9aee5
authored
May 09, 2022
by
umangyadav
Browse files
revert if_() method changes
parent
836efeb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/api/include/migraphx/migraphx.hpp
src/api/include/migraphx/migraphx.hpp
+5
-1
No files found.
src/api/include/migraphx/migraphx.hpp
View file @
97b9aee5
...
@@ -902,7 +902,11 @@ struct value : MIGRAPHX_HANDLE_BASE(value)
...
@@ -902,7 +902,11 @@ struct value : MIGRAPHX_HANDLE_BASE(value)
call(&migraphx_value_get_##vt, &get_value, this->get_handle_ptr()); \
call(&migraphx_value_get_##vt, &get_value, this->get_handle_ptr()); \
return get_value; \
return get_value; \
} \
} \
const cpp_type* if_##vt() const { return this->is_##vt() ? &(this->get_##vt()) : nullptr; }
const cpp_type* if_##vt() const { \
const cpp_type* ret_value = nullptr; \
call(&migraphx_value_if_##vt, &ret_value, this->get_handle_ptr()); \
return ret_value; \
}
MIGRAPHX_VISIT_VALUE_TYPES
(
MIGRAPHX_VALUE_GENERATE_DEFINE_METHODS
)
MIGRAPHX_VISIT_VALUE_TYPES
(
MIGRAPHX_VALUE_GENERATE_DEFINE_METHODS
)
};
};
...
...
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