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

Function _as_tensor_list_list

tensorflow/python/training/input.py:452–463  ·  view source on GitHub ↗
(tensors_list)

Source from the content-addressed store, hash-verified

450
451
452def _as_tensor_list_list(tensors_list):
453 if not tensors_list:
454 raise ValueError("Expected at least one set of tensors")
455 if isinstance(tensors_list[0], dict):
456 expected_keys = set(tensors_list[0].keys())
457 for tensors in tensors_list[1:]:
458 if set(tensors.keys()) != expected_keys:
459 raise ValueError("All dictionaries in tensors_list must have "
460 "the same keys")
461 return [_as_tensor_list(tensors) for tensors in tensors_list]
462 else:
463 return tensors_list
464
465
466def _as_original_type(original_tensors, tensor_list):

Callers 2

_batch_joinFunction · 0.85
_shuffle_batch_joinFunction · 0.85

Calls 2

_as_tensor_listFunction · 0.85
keysMethod · 0.45

Tested by

no test coverage detected