| 240 | : m_(new Impl(filename, device_type, n_layers, n_heads)) {} |
| 241 | |
| 242 | std::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 | |
| 250 | BertModel::~BertModel() = default; |
no outgoing calls