Commit 8fa4cd1b authored by Paul's avatar Paul
Browse files

Tidy fixes

parent 9651e509
......@@ -16,7 +16,7 @@ std::size_t hash_value(const T& v)
template <class T>
void hash_combine(std::size_t& seed, const T& v)
{
seed ^= hash_value(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
seed ^= hash_value(v) + 0x9e3779b9 + (seed << 6u) + (seed >> 2u);
}
} // namespace MIGRAPHX_INLINE_NS
......
......@@ -489,7 +489,7 @@ struct hash<migraphx::value>
{
using argument_type = migraphx::value;
using result_type = std::size_t;
result_type operator()(const migraphx::value& x) const noexcept { return x.hash(); }
result_type operator()(const migraphx::value& x) const { return x.hash(); }
};
} // namespace std
......
......@@ -75,7 +75,7 @@ void multinomial(hipStream_t stream,
auto idx = output.get_shape().multi(i);
auto cdf_begin = cdf.begin() + (idx.front() * class_size);
auto cdf_end = cdf_begin + class_size;
auto sample_iter =
auto* sample_iter =
upper_bound(cdf_begin, cdf_end, dist[i] * *(std::prev(cdf_end)));
output[i] = std::distance(cdf_begin, sample_iter);
});
......
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