Esempio n. 1
0
 def test_tensor_with_one_element_is_strictly_increasing(self):
     with self.test_session():
         self.assertTrue(tf.is_strictly_increasing([1]).eval())
Esempio n. 2
0
 def test_empty_tensor_is_strictly_increasing(self):
     with self.test_session():
         self.assertTrue(tf.is_strictly_increasing([]).eval())
Esempio n. 3
0
 def test_2d_decreasing_tensor_is_not_strictly_increasing(self):
     with self.test_session():
         self.assertFalse(
             tf.is_strictly_increasing([[1, 3], [2, 4]]).eval())
Esempio n. 4
0
 def test_increasing_rank_two_tensor(self):
     with self.test_session():
         self.assertTrue(
             tf.is_strictly_increasing([[-1, 2], [3, 4]]).eval())
Esempio n. 5
0
 def test_empty_tensor_is_strictly_increasing(self):
   with self.test_session():
     self.assertTrue(tf.is_strictly_increasing([]).eval())
Esempio n. 6
0
 def test_constant_tensor_is_not_strictly_increasing(self):
     with self.test_session():
         self.assertFalse(tf.is_strictly_increasing([1, 1, 1]).eval())
Esempio n. 7
0
 def test_tensor_with_one_element_is_strictly_increasing(self):
   with self.test_session():
     self.assertTrue(tf.is_strictly_increasing([1]).eval())
Esempio n. 8
0
 def test_increasing_rank_two_tensor(self):
   with self.test_session():
     self.assertTrue(tf.is_strictly_increasing([[-1, 2], [3, 4]]).eval())
Esempio n. 9
0
 def test_2d_decreasing_tensor_is_not_strictly_increasing(self):
   with self.test_session():
     self.assertFalse(tf.is_strictly_increasing([[1, 3], [2, 4]]).eval())
Esempio n. 10
0
 def test_constant_tensor_is_not_strictly_increasing(self):
   with self.test_session():
     self.assertFalse(tf.is_strictly_increasing([1, 1, 1]).eval())
Esempio n. 11
0
tf.ordered_map_peek()
tf.ordered_map_size()
tf.ordered_map_stage()
tf.ordered_map_unstage()
tf.ordered_map_unstage_no_key()

tf.matrix_diag()

tf.negative()
tf.norm()
tf.is_nan()
tf.is_finite()
tf.is_inf()
tf.is_non_decreasing()
tf.is_numeric_tensor()
tf.is_strictly_increasing()
tf.is_variable_initialized

tf.global_variables_initializer()
tf.global_variables()
tf.global_norm()

tf.local_variables()
tf.local_variables_initializer()
tf.get_local_variable
tf.initialize_local_variables

tf.equal()
tf.einsum()
tf.extract_image_patches()