Home
last modified time | relevance | path

Searched refs:maybe_get_static_value (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dutil_test.py98 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/
Dtransformed_distribution.py639 event_ndims_ = distribution_util.maybe_get_static_value(event_ndims)
Dbijector_impl.py1107 event_ndims_ = distribution_util.maybe_get_static_value(event_ndims)
Dutil.py139 def maybe_get_static_value(x, dtype=None): function