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

Function _enqueue_vector

tensorflow/python/kernel_tests/metrics_test.py:46–52  ·  view source on GitHub ↗
(sess, queue, values, shape=None)

Source from the content-addressed store, hash-verified

44
45
46def _enqueue_vector(sess, queue, values, shape=None):
47 if not shape:
48 shape = (1, len(values))
49 dtype = queue.dtypes[0]
50 sess.run(
51 queue.enqueue(constant_op.constant(
52 values, dtype=dtype, shape=shape)))
53
54
55def _binary_2d_label_to_2d_sparse_value(labels):

Callers 15

testBasicMethod · 0.70
testBasicMethod · 0.70
testMultiDimensionalMethod · 0.70
testBinaryWeighted1dMethod · 0.70
testWeighted1dMethod · 0.70
testWeighted2d_1Method · 0.70
testWeighted2d_2Method · 0.70
testMultipleUpdatesMethod · 0.70

Calls 3

runMethod · 0.45
enqueueMethod · 0.45
constantMethod · 0.45

Tested by

no test coverage detected