@@ -369,6 +369,9 @@ def attribute(
369369 assert len (input_roles ) == len (inputs ), (
370370 "input_roles must have the same size as the return of the dataloader," ,
371371 f"length of input_roles is { len (input_roles )} " ,
372+ # pyre-fixme[6]: For 1st argument expected
373+ # `pyre_extensions.ReadOnly[Sized]` but got
374+ # `Optional[typing.Tuple[typing.Any, ...]]`.
372375 f"whereas the length of dataloader return is { len (inputs )} " ,
373376 )
374377
@@ -395,6 +398,9 @@ def attribute(
395398 "Baselines must have the same size as the return of the dataloader " ,
396399 "that need attribution" ,
397400 f"length of baseline is { len (baselines )} " ,
401+ # pyre-fixme[6]: For 1st argument expected
402+ # `pyre_extensions.ReadOnly[Sized]` but got
403+ # `Optional[typing.Tuple[typing.Any, ...]]`.
398404 f'whereas the length of dataloader return with role "0" is { len (inputs )} ' ,
399405 )
400406
@@ -413,6 +419,9 @@ def attribute(
413419 "Feature mask must have the same size as the return of the dataloader " ,
414420 "that need attribution" ,
415421 f"length of feature_mask is { len (feature_mask )} " ,
422+ # pyre-fixme[6]: For 1st argument expected
423+ # `pyre_extensions.ReadOnly[Sized]` but got
424+ # `Optional[typing.Tuple[typing.Any, ...]]`.
416425 f'whereas the length of dataloader return with role "0" is { len (inputs )} ' ,
417426 )
418427
0 commit comments