Searched refs:maybe_get_static_value (Results 1 – 4 of 4) sorted by relevance
/external/tensorflow/tensorflow/python/kernel_tests/distributions/ |
D | util_test.py | 98 self.assertEqual(x, du.maybe_get_static_value(x)) 100 np.array(2.), du.maybe_get_static_value(x, dtype=np.float64)) 105 self.assertEqual(x, du.maybe_get_static_value(x)) 107 np.array(2.), du.maybe_get_static_value(x, dtype=np.float64)) 112 self.assertEqual(np.array(2, dtype=np.int32), du.maybe_get_static_value(x)) 114 np.array(2.), du.maybe_get_static_value(x, dtype=np.float64)) 119 self.assertEqual(None, du.maybe_get_static_value(x)) 120 self.assertEqual(None, du.maybe_get_static_value(x, dtype=np.float64))
|
/external/tensorflow/tensorflow/python/ops/distributions/ |
D | transformed_distribution.py | 639 event_ndims_ = distribution_util.maybe_get_static_value(event_ndims)
|
D | bijector_impl.py | 1107 event_ndims_ = distribution_util.maybe_get_static_value(event_ndims)
|
D | util.py | 139 def maybe_get_static_value(x, dtype=None): function
|