MCPcopy Create free account
hub / github.com/Tencent/TurboTransformers / BertModel

Method BertModel

example/cpp/bert_model.cpp:238–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236};
237
238BertModel::BertModel(const std::string &filename, DLDeviceType device_type,
239 size_t n_layers, int64_t n_heads)
240 : m_(new Impl(filename, device_type, n_layers, n_heads)) {}
241
242std::vector<float> BertModel::operator()(
243 const std::vector<std::vector<int64_t>> &inputs,

Callers 6

generate_onnx_modelFunction · 0.80
benchmark_torchFunction · 0.80
benchmark_torch_jitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected