Commit 78142841 authored by Umang Yadav's avatar Umang Yadav
Browse files

change name to verify_args_with_threshold

parent 7dd07b88
...@@ -84,7 +84,7 @@ void verify_program(const std::string& name, ...@@ -84,7 +84,7 @@ void verify_program(const std::string& name,
std::size_t output_num = x.size(); std::size_t output_num = x.size();
for(std::size_t i = 0; i < output_num; ++i) for(std::size_t i = 0; i < output_num; ++i)
{ {
verify_args(name, x[i], y[i], threshold); verify_args_with_threshold(name, x[i], y[i], threshold);
} }
} }
......
...@@ -31,10 +31,10 @@ ...@@ -31,10 +31,10 @@
namespace migraphx { namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS { inline namespace MIGRAPHX_INLINE_NS {
MIGRAPHX_EXPORT bool verify_args(const std::string& name, MIGRAPHX_EXPORT bool verify_args_with_threshold(const std::string& name,
const argument& ref_arg, const argument& ref_arg,
const argument& target_arg, const argument& target_arg,
double threshold); double threshold);
MIGRAPHX_EXPORT bool verify_args(const std::string& name, MIGRAPHX_EXPORT bool verify_args(const std::string& name,
const argument& ref_arg, const argument& ref_arg,
......
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
namespace migraphx { namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS { inline namespace MIGRAPHX_INLINE_NS {
bool verify_args(const std::string& name, bool verify_args_with_threshold(const std::string& name,
const argument& ref_arg, const argument& ref_arg,
const argument& target_arg, const argument& target_arg,
double threshold) double threshold)
{ {
bool passed = true; bool passed = true;
visit_all(ref_arg, target_arg)([&](auto ref, auto target) { visit_all(ref_arg, target_arg)([&](auto ref, auto target) {
...@@ -100,7 +100,7 @@ bool verify_args(const std::string& name, ...@@ -100,7 +100,7 @@ bool verify_args(const std::string& name,
{ {
double threshold = 0.001; double threshold = 0.001;
target_arg.visit([&](auto ta) { threshold = verify::get_threshold(ta, tolerance); }); target_arg.visit([&](auto ta) { threshold = verify::get_threshold(ta, tolerance); });
return verify_args(name, ref_arg, target_arg, threshold); return verify_args_with_threshold(name, ref_arg, target_arg, threshold);
} }
} // namespace MIGRAPHX_INLINE_NS } // namespace MIGRAPHX_INLINE_NS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment