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

Method num_input_features

include/ctranslate2/layers/encoder.h:12–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 class Encoder : public Layer {
11 public:
12 virtual size_t num_input_features() const {
13 return 1;
14 }
15
16 virtual void operator()(const StorageView& ids,
17 StorageView& output) {

Callers 3

run_scoringMethod · 0.45
run_translationMethod · 0.45
forward_implMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected