@@ -674,13 +674,24 @@ def __init__(
674
674
self .table_name_to_count : Dict [str , int ] = {}
675
675
self ._param_per_table : Dict [str , TableBatchedEmbeddingSlice ] = {}
676
676
677
+ # pyre-fixme[9]: config has type `GroupedEmbeddingConfig`; used as
678
+ # `ShardedEmbeddingTable`.
677
679
for idx , config in enumerate (self ._config .embedding_tables ):
680
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute `local_rows`.
678
681
self ._local_rows .append (config .local_rows )
682
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute
683
+ # `get_weight_init_min`.
679
684
self ._weight_init_mins .append (config .get_weight_init_min ())
685
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute
686
+ # `get_weight_init_max`.
680
687
self ._weight_init_maxs .append (config .get_weight_init_max ())
688
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute
689
+ # `num_embeddings`.
681
690
self ._num_embeddings .append (config .num_embeddings )
691
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute `local_cols`.
682
692
self ._local_cols .append (config .local_cols )
683
693
self ._feature_table_map .extend ([idx ] * config .num_features ())
694
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute `name`.
684
695
if config .name not in self .table_name_to_count :
685
696
self .table_name_to_count [config .name ] = 0
686
697
self .table_name_to_count [config .name ] += 1
@@ -1080,13 +1091,24 @@ def __init__(
1080
1091
self .table_name_to_count : Dict [str , int ] = {}
1081
1092
self ._param_per_table : Dict [str , TableBatchedEmbeddingSlice ] = {}
1082
1093
1094
+ # pyre-fixme[9]: config has type `GroupedEmbeddingConfig`; used as
1095
+ # `ShardedEmbeddingTable`.
1083
1096
for idx , config in enumerate (self ._config .embedding_tables ):
1097
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute `local_rows`.
1084
1098
self ._local_rows .append (config .local_rows )
1099
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute
1100
+ # `get_weight_init_min`.
1085
1101
self ._weight_init_mins .append (config .get_weight_init_min ())
1102
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute
1103
+ # `get_weight_init_max`.
1086
1104
self ._weight_init_maxs .append (config .get_weight_init_max ())
1105
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute
1106
+ # `num_embeddings`.
1087
1107
self ._num_embeddings .append (config .num_embeddings )
1108
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute `local_cols`.
1088
1109
self ._local_cols .append (config .local_cols )
1089
1110
self ._feature_table_map .extend ([idx ] * config .num_features ())
1111
+ # pyre-fixme[16]: `GroupedEmbeddingConfig` has no attribute `name`.
1090
1112
if config .name not in self .table_name_to_count :
1091
1113
self .table_name_to_count [config .name ] = 0
1092
1114
self .table_name_to_count [config .name ] += 1
0 commit comments