Commit fc7a1825 authored by Astha's avatar Astha
Browse files

removed standard header usage in elementwise files, resolved namespace errors

parent 3a3214cd
...@@ -340,8 +340,8 @@ struct Bilinear ...@@ -340,8 +340,8 @@ struct Bilinear
}; };
template <> template <>
__host__ __device__ constexpr void operator()<std::int8_t, std::int32_t, std::int8_t>( __host__ __device__ constexpr void operator()<int8_t, int32_t, int8_t>(
std::int8_t& y, const std::int32_t& x0, const std::int8_t& x1) const int8_t& y, const int32_t& x0, const int8_t& x1) const
{ {
y = type_convert<int8_t>(alpha_ * type_convert<float>(x0) + y = type_convert<int8_t>(alpha_ * type_convert<float>(x0) +
beta_ * type_convert<float>(x1)); beta_ * type_convert<float>(x1));
......
...@@ -714,7 +714,7 @@ struct Cos ...@@ -714,7 +714,7 @@ struct Cos
is_same<T, int32_t>::value, is_same<T, int32_t>::value,
"Data type is not supported by this operation!"); "Data type is not supported by this operation!");
y = math::cos(x); y = cos(x);
}; };
}; };
......
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