MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _create_combiners

Function _create_combiners

tensorflow/python/tpu/tpu_embedding.py:1411–1417  ·  view source on GitHub ↗

Create a per feature list of combiners, ordered by table.

(table_to_config_dict, table_to_features_dict)

Source from the content-addressed store, hash-verified

1409
1410
1411def _create_combiners(table_to_config_dict, table_to_features_dict):
1412 """Create a per feature list of combiners, ordered by table."""
1413 combiners = []
1414 for table in table_to_config_dict:
1415 combiner = table_to_config_dict[table].combiner or 'sum'
1416 combiners.extend([combiner] * len(table_to_features_dict[table]))
1417 return combiners
1418
1419
1420def _create_table_to_features_and_num_features_dicts(feature_to_config_dict):

Callers 1

__init__Method · 0.85

Calls 1

extendMethod · 0.45

Tested by

no test coverage detected