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

Method _scope_vals

tensorflow/python/ops/data_flow_ops.py:296–310  ·  view source on GitHub ↗

Return a list of values to pass to `name_scope()`. Args: vals: A tensor, a list or tuple of tensors, or a dictionary. Returns: The values in vals as a list.

(self, vals)

Source from the content-addressed store, hash-verified

294 return tensors
295
296 def _scope_vals(self, vals):
297 """Return a list of values to pass to `name_scope()`.
298
299 Args:
300 vals: A tensor, a list or tuple of tensors, or a dictionary.
301
302 Returns:
303 The values in vals as a list.
304 """
305 if isinstance(vals, (list, tuple)):
306 return vals
307 elif isinstance(vals, dict):
308 return vals.values()
309 else:
310 return [vals]
311
312 def enqueue(self, vals, name=None):
313 """Enqueues one element to this queue.

Callers 4

enqueueMethod · 0.95
enqueue_manyMethod · 0.95
putMethod · 0.45
putMethod · 0.45

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected