Skip to content

Commit

Permalink
cpu: x64: brgemm: use utils::make_unique for the allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
fwph authored and densamoilov committed Jul 31, 2024
1 parent a49a12e commit 2cae359
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cpu/x64/brgemm/capi/brgemm_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

#include "cpu/x64/brgemm/brgemm.hpp"

#include <memory>
#include "cpu/x64/brgemm/capi/brgemm_api.hpp"

using namespace dnnl::impl;
Expand All @@ -49,7 +48,7 @@ status_t dnnl_brgemm_create(brgemm_t **brgemm, dim_t M, dim_t N, dim_t K,
float alpha, float beta, const primitive_attr_t *attr) {
if (brgemm == nullptr) return invalid_arguments;

auto _brgemm = std::unique_ptr<brgemm_t>(new brgemm_t());
auto _brgemm = utils::make_unique<brgemm_t>();
auto &brgemm_desc = _brgemm->brgemm_desc_;

brgemm_batch_kind_t batch_kind = brgemm_batch_kind_t::brgemm_offs;
Expand Down

0 comments on commit 2cae359

Please sign in to comment.