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

Method testSparseTensor

tensorflow/python/framework/ops_test.py:2442–2450  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2440
2441 @test_util.run_deprecated_v1
2442 def testSparseTensor(self):
2443 g0 = ops.Graph()
2444 a = g0.create_op("A", [], [dtypes.float32])
2445 b = g0.create_op("B", [], [dtypes.float32])
2446 sparse = sparse_tensor.SparseTensor(
2447 _apply_op(g0, "Int64Output", [], [dtypes.int64]),
2448 _apply_op(g0, "FloatOutput", [], [dtypes.float32]),
2449 _apply_op(g0, "Int64Output", [], [dtypes.int64]))
2450 self._testGraphElements([a, sparse, b])
2451
2452 @test_util.run_deprecated_v1
2453 def testVariable(self):

Callers

nothing calls this directly

Calls 4

create_opMethod · 0.95
_testGraphElementsMethod · 0.95
_apply_opFunction · 0.85
GraphMethod · 0.45

Tested by

no test coverage detected