MCPcopy Create free account
hub / github.com/Tencent/TurboTransformers / operator()

Method operator()

example/cpp/bert_model.cpp:242–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,
244 const std::vector<std::vector<int64_t>> &poistion_ids,
245 const std::vector<std::vector<int64_t>> &segment_ids, PoolType pooling,
246 bool use_pooler) const {
247 return m_->operator()(inputs, poistion_ids, segment_ids, pooling, use_pooler);
248}
249
250BertModel::~BertModel() = default;

Callers 2

CallBackFunctionFunction · 0.45
CallBackFunctionFunction · 0.45

Calls

no outgoing calls

Tested by 1

CallBackFunctionFunction · 0.36