diff options
author | Evgeny Fiksman <efiksman@fb.com> | 2019-12-11 01:46:21 +0300 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2019-12-11 01:48:08 +0300 |
commit | 3839cbaf526adaf5b2f8faa3b963e4396c893920 (patch) | |
tree | ef8c70c6bd74cb73f0f27362825532a66bfb80a0 | |
parent | 7fd86a8f6418b88daa76b4306897565cab14548d (diff) |
Reapply fix for make_unique not supported by C++11 (#217)
Summary:
Pull Request resolved: https://github.com/pytorch/FBGEMM/pull/217
re-appling the fix to #PR 215
Reviewed By: jianyuh
Differential Revision: D18919069
fbshipit-source-id: cd9c94420b274e73cd0b33506d832176eb8bcfbb
-rw-r--r-- | bench/FP16Benchmark.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/FP16Benchmark.cc b/bench/FP16Benchmark.cc index ab2a469..0b963cd 100644 --- a/bench/FP16Benchmark.cc +++ b/bench/FP16Benchmark.cc @@ -103,8 +103,8 @@ void performance_test( vector<unique_ptr<PackedGemmMatrixFP16>> Bp; for (int i = 0; i < num_instances; ++i) { - Bp.push_back( - make_unique<PackedGemmMatrixFP16>(btran, k, n, alpha, B.data())); + Bp.push_back(unique_ptr<PackedGemmMatrixFP16>( + new PackedGemmMatrixFP16(btran, k, n, alpha, B.data()))); } auto kAligned = ((k * sizeof(float) + 64) & ~63) / sizeof(float); |