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

Function get_generating_ops

tensorflow/python/ops/op_selector.py:164–175  ·  view source on GitHub ↗

Return all the generating ops of the tensors in `ts`. Args: ts: a list of `tf.Tensor` Returns: A list of all the generating `tf.Operation` of the tensors in `ts`. Raises: TypeError: if `ts` cannot be converted to a list of `tf.Tensor`.

(ts)

Source from the content-addressed store, hash-verified

162
163
164def get_generating_ops(ts):
165 """Return all the generating ops of the tensors in `ts`.
166
167 Args:
168 ts: a list of `tf.Tensor`
169 Returns:
170 A list of all the generating `tf.Operation` of the tensors in `ts`.
171 Raises:
172 TypeError: if `ts` cannot be converted to a list of `tf.Tensor`.
173 """
174 ts = make_list_of_t(ts, allow_graph=False)
175 return [t.op for t in ts]
176
177
178def get_consuming_ops(ts):

Callers 1

get_backward_walk_opsFunction · 0.70

Calls 1

make_list_of_tFunction · 0.70

Tested by

no test coverage detected