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

Function get_generating_ops

tensorflow/contrib/graph_editor/util.py:305–316  ·  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

303
304
305def get_generating_ops(ts):
306 """Return all the generating ops of the tensors in `ts`.
307
308 Args:
309 ts: a list of `tf.Tensor`
310 Returns:
311 A list of all the generating `tf.Operation` of the tensors in `ts`.
312 Raises:
313 TypeError: if `ts` cannot be converted to a list of `tf.Tensor`.
314 """
315 ts = make_list_of_t(ts, allow_graph=False)
316 return [t.op for t in ts]
317
318
319def get_consuming_ops(ts):

Callers

nothing calls this directly

Calls 1

make_list_of_tFunction · 0.70

Tested by

no test coverage detected