MCPcopy Create free account
hub / github.com/alibaba/nann / is_sparse

Function is_sparse

tensorflow/tensorflow/python/keras/backend.py:685–705  ·  view source on GitHub ↗

Returns whether a tensor is a sparse tensor. Arguments: tensor: A tensor instance. Returns: A boolean. Example: ```python >>> from keras import backend as K >>> a = K.placeholder((2, 2), sparse=False) >>> print(K.is_sparse(a)) False >>> b = K.placeholder((2, 2), spar

(tensor)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

to_denseFunction · 0.70
dotFunction · 0.70
concatenateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected