This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a new PyText get_num_examples_from_batch function in model
Summary: Usually in PyText dataloader, each row (sentence) is read as an example, i.e. create List[sentences], and the number of examples in the batch is simply len(List[data]). This is not correct for language model: in LM, each word is considered as an example. Reviewed By: kmalik22 Differential Revision: D21032297 fbshipit-source-id: 619e3509e2dadb64431700516e23c4911cc4699a
- Loading branch information