Commit a563f3de authored by zhangyue's avatar zhangyue
Browse files

issue/25: T const to const T

parent c9dbc0ff
......@@ -30,7 +30,7 @@ struct InfiniopKunlunHandle {
};
template <typename T>
void use_xdnn(std::shared_ptr<Pool<xdnnHandle_t>> &pool, KunlunStream_t stream, T const &f) {
void use_xdnn(std::shared_ptr<Pool<xdnnHandle_t>> &pool, KunlunStream_t stream, const T &f) {
auto handle = pool->pop();
if (!handle) {
*handle = xdnn::create_context();
......
......@@ -44,8 +44,8 @@ void calculate(
infiniDtype_t dtype,
void *c,
float beta,
void const *a,
void const *b,
const void *a,
const void *b,
float alpha,
KunlunStream_t stream) {
......
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