Commit 9f50051e authored by Umang Yadav's avatar Umang Yadav
Browse files

fixes

parent e2b0c406
......@@ -68,7 +68,7 @@ dnnl::memory::data_type to_dnnl_memory_data_type(shape::type_t t)
case st::int32_type: return dt::s32;
case st::int8_type: return dt::s8;
case st::uint8_type: return dt::u8;
case st::fp8e4m3fnuz_type: return dt : u8;
case st::fp8e4m3fnuz_type: return dt::u8;
default: MIGRAPHX_THROW("Unsupported data type");
}
}
......
......@@ -34,17 +34,13 @@ struct test_literal_limits : verify_program<test_literal_limits<Q, T>>
migraphx::program create_program() const
{
migraphx::program p;
auto* mm = p.get_main_module();
auto input_s = migraphx::shape(Q, {3, 1});
auto infinity_val = std::numeric_limits<T>::max();
auto* mm = p.get_main_module();
auto input_s = migraphx::shape(Q, {3, 1});
T infinity_val{0};
if constexpr(std::numeric_limits<T>::has_infinity and std::is_floating_point<T>{})
{
infinity_val = std::numeric_limits<T>::infinity();
}
else
{ // for the interger vals, infinity doesn't exist
infinity_val = 0;
}
std::vector<T> s_data{
infinity_val, static_cast<T>(-infinity_val), std::numeric_limits<T>::quiet_NaN()};
......
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