def test_tensor_with_one_element_is_strictly_increasing(self): with self.test_session(): self.assertTrue(tf.is_strictly_increasing([1]).eval())
def test_empty_tensor_is_strictly_increasing(self): with self.test_session(): self.assertTrue(tf.is_strictly_increasing([]).eval())
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())
def test_increasing_rank_two_tensor(self): with self.test_session(): self.assertTrue( tf.is_strictly_increasing([[-1, 2], [3, 4]]).eval())
def test_constant_tensor_is_not_strictly_increasing(self): with self.test_session(): self.assertFalse(tf.is_strictly_increasing([1, 1, 1]).eval())
def test_increasing_rank_two_tensor(self): with self.test_session(): self.assertTrue(tf.is_strictly_increasing([[-1, 2], [3, 4]]).eval())
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())
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()