Skip to content

Commit

Permalink
Reapply fix for make_unique not supported by C++11 (pytorch#217)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#217

re-appling the fix to #PR 215

Reviewed By: jianyuh

Differential Revision: D18919069

fbshipit-source-id: cd9c94420b274e73cd0b33506d832176eb8bcfbb
  • Loading branch information
efiks authored and jspark1105 committed Mar 21, 2020
1 parent 5954322 commit 13e3366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/FP16Benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 13e3366

Please sign in to comment.