Move DataCollatorForMultipleChoice from the docs to the package (#34763)
* Add implementation for DataCollatorForMultipleChoice based on docs. * Add DataCollatorForMultipleChoice to import structure. * Remove custom DataCollatorForMultipleChoice implementations from example scripts. * Remove custom implementations of DataCollatorForMultipleChoice from docs in English, Spanish, Japanese and Korean. * Refactor torch version of DataCollatorForMultipleChoice to be more easily understandable. * Apply suggested changes and run make fixup. * fix copies, style and fixup * add missing documentation * nits * fix docstring * style * nits * isort --------- Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com> Co-authored-by: Arthur Zucker <arthur.zucker@gmail.com>
This commit is contained in:
@@ -182,7 +182,7 @@ class DepthProModelTester:
|
||||
model_name = model.__class__.__name__
|
||||
self.parent.assertTrue(
|
||||
diff <= 1e-03,
|
||||
msg=(f"Batched and Single row outputs are not equal in {model_name} for fov. " f"Difference={diff}."),
|
||||
msg=(f"Batched and Single row outputs are not equal in {model_name} for fov. Difference={diff}."),
|
||||
)
|
||||
|
||||
def prepare_config_and_inputs_for_common(self):
|
||||
|
||||
Reference in New Issue
Block a user