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