Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 5d51a62

Browse files
Remove dead code
1 parent 0d41d7d commit 5d51a62

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

benchmarks/benchmark_fixture.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,6 @@ std::vector<const DLTensor*> inferOutputTensorInfo(
6969
return atCompl.inferOutputTensorInfo(name, inputs);
7070
}
7171

72-
tc::CudaMappingOptions loadOptionsFromProto(
73-
const std::string cacheFilename,
74-
const std::string& name,
75-
const std::vector<at::Tensor>& inputs,
76-
const std::vector<const DLTensor*>& outputs) {
77-
tc::OptionsCache::enableCache();
78-
tc::OptionsCache::loadCacheFromProtobuf(cacheFilename);
79-
tc::CudaCache::enableCache();
80-
tc::CudaCache::loadCacheFromProtobuf(tc::makeCudaFilename(cacheFilename));
81-
tc::FLAGS_tuner_gen_restore_number = 1;
82-
83-
auto mappingOptions = [&]() {
84-
auto inputsPair = tc::toConstDlpackTensors(inputs);
85-
tc::ScopeGuard g([&]() { tc::deleteDlmTensors(inputsPair.second); });
86-
return tc::autotune::restoreCandidates(name, inputsPair.first, outputs);
87-
}();
88-
return mappingOptions[0];
89-
}
90-
9172
struct Benchmark : public ::testing::Test {
9273
void SetUp() {
9374
if (!FLAGS_disable_version_checks) {

0 commit comments

Comments
 (0)