| 717 | } |
| 718 | |
| 719 | bool ExpertStream::pending(int l, int e) const { |
| 720 | if (l != pend_l_) return false; |
| 721 | const int s = where_[(size_t) (l * NE + e)]; |
| 722 | return s >= 0 && std::find(pend_wait_.begin(), pend_wait_.end(), s) != pend_wait_.end(); |
| 723 | } |
| 724 | |
| 725 | void ExpertStream::begin_layer(int l, int T, int topk, const int32_t* ids, const float* pred, const float* pred2) { |
| 726 | const double t0 = now_ms(); |