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

Method sparse_read

tensorflow/python/ops/variables.py:1140–1154  ·  view source on GitHub ↗

r"""Gather slices from params axis axis according to indices. This function supports a subset of tf.gather, see tf.gather for details on usage. Args: indices: The index `Tensor`. Must be one of the following types: `int32`, `int64`. Must be in range `[0, params.shape[axi

(self, indices, name=None, ev_init_value=None)

Source from the content-addressed store, hash-verified

1138 raise NotImplementedError
1139
1140 def sparse_read(self, indices, name=None, ev_init_value=None):
1141 r"""Gather slices from params axis axis according to indices.
1142
1143 This function supports a subset of tf.gather, see tf.gather for details on
1144 usage.
1145
1146 Args:
1147 indices: The index `Tensor`. Must be one of the following types: `int32`,
1148 `int64`. Must be in range `[0, params.shape[axis])`.
1149 name: A name for the operation (optional).
1150
1151 Returns:
1152 A `Tensor`. Has the same type as `params`.
1153 """
1154 raise AttributeError
1155
1156 def gather_nd(self, indices, name=None):
1157 r"""Gather slices from `params` into a Tensor with shape specified by `indices`.

Callers 7

_do_gatherFunction · 0.45
gatherFunction · 0.45

Calls

no outgoing calls

Tested by 4