MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / ComputeTypeResolver

Method ComputeTypeResolver

python/cpp/utils.h:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32 public:
33 ComputeTypeResolver(std::string device)
34 : _device(std::move(device)) {
35 }
36
37 ComputeType
38 operator()(const std::string& compute_type) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected