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

Function is_indexed_slices

tensorflow/python/distribute/cross_device_utils.py:718–722  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

716
717
718def is_indexed_slices(value):
719 if isinstance(value, ops.IndexedSlices):
720 return True
721 assert isinstance(value, value_lib.DistributedValues)
722 return all([isinstance(v, ops.IndexedSlices) for v in value.values])
723
724
725def split_by_sparsity(values):

Callers 2

split_by_sparsityFunction · 0.85
_make_histogram_opsMethod · 0.85

Calls 1

allFunction · 0.85

Tested by

no test coverage detected