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

Method _set_size

tensorflow/python/kernel_tests/sets_test.py:162–174  ·  view source on GitHub ↗
(self, sparse_data)

Source from the content-addressed store, hash-verified

160 ], self._set_size(sp))
161
162 def _set_size(self, sparse_data):
163 # Validate that we get the same results with or without `validate_indices`.
164 ops = [
165 sets.set_size(sparse_data, validate_indices=True),
166 sets.set_size(sparse_data, validate_indices=False)
167 ]
168 for op in ops:
169 self.assertEqual(None, op.get_shape().dims)
170 self.assertEqual(dtypes.int32, op.dtype)
171 with self.cached_session() as sess:
172 results = self.evaluate(ops)
173 self.assertAllEqual(results[0], results[1])
174 return results[0]
175
176 @test_util.run_deprecated_v1
177 def test_set_intersection_multirow_2d(self):

Callers 3

_test_set_size_2dMethod · 0.95
_test_set_size_3dMethod · 0.95

Calls 5

set_sizeMethod · 0.45
get_shapeMethod · 0.45
cached_sessionMethod · 0.45
evaluateMethod · 0.45
assertAllEqualMethod · 0.45

Tested by

no test coverage detected