mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-08 07:39:33 +01:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/27086 This is a major source of merge conflicts, and AFAICT isn't necessary anymore (it may have been necessary for some mobile build stuff in the past). This is a commandeer of #25031 Test Plan: Imported from OSS Reviewed By: ljk53 Differential Revision: D17687345 Pulled By: ezyang fbshipit-source-id: bf6131af835ed1f9e3c10699c81d4454a240445f
21 lines
349 B
C++
21 lines
349 B
C++
#include <caffe2/core/context_base.h>
|
|
|
|
#include <c10/util/Logging.h>
|
|
|
|
namespace at {
|
|
|
|
C10_DEFINE_TYPED_REGISTRY(
|
|
ContextRegistry,
|
|
at::DeviceType,
|
|
at::BaseContext,
|
|
std::unique_ptr,
|
|
at::Device);
|
|
|
|
} // namespace at
|
|
|
|
namespace caffe2 {
|
|
|
|
// TODO: rename context.h -> context_cpu.h & context_base.h -> context.h
|
|
|
|
} // namespace caffe2
|