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

Method device

include/ctranslate2/layers/decoder.h:75–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 Device device() const {
76 return _device;
77 }
78
79 DataType output_type() const override {
80 return const_cast<Decoder&>(*this).output_layer().output_type();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected