Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | List of all members
test_indexing.TestIndexing Class Reference
Inheritance diagram for test_indexing.TestIndexing:
common_utils.TestCase expecttest.TestCase

Public Member Functions

def test_single_int (self)
def test_multiple_int (self)
def test_none (self)
def test_step (self)
def test_step_assignment (self)
def test_byte_mask (self)
def test_byte_mask_accumulate (self)
def test_multiple_byte_mask (self)
def test_byte_mask2d (self)
def test_int_indices (self)
def test_int_indices2d (self)
def test_int_indices_broadcast (self)
def test_empty_index (self)
def test_empty_ndim_index (self)
def test_empty_ndim_index_bool (self)
def test_empty_slice (self)
def test_index_getitem_copy_bools_slices (self)
def test_index_setitem_bools_slices (self)
def test_setitem_expansion_error (self)
def test_getitem_scalars (self)
def test_setitem_scalars (self)
def test_basic_advanced_combined (self)
def test_int_assignment (self)
def test_byte_tensor_assignment (self)
def test_variable_slicing (self)
def test_ellipsis_tensor (self)
def test_invalid_index (self)
def test_out_of_bound_index (self)
def test_zero_dim_index (self)
- Public Member Functions inherited from common_utils.TestCase
def __init__ (self, method_name='runTest')
def assertLeaksNoCudaTensors (self, name=None)
def wrap_with_cuda_memory_check (self, method)
def setUp (self)
def assertTensorsSlowEqual (self, x, y, prec=None, message='')
def genSparseTensor (self, size, sparse_dim, nnz, is_uncoalesced, device='cpu')
def safeToDense (self, t)
def safeCoalesce (self, t)
def assertEqual (self, x, y, prec=None, message='', allow_inf=False)
def assertAlmostEqual (self, x, y, places=None, msg=None, delta=None, allow_inf=None)
def assertNotEqual (self, x, y, prec=None, message='')
def assertObjectIn (self, obj, iterable)
def assertExpectedRaises (self, exc_type, callable, args, kwargs)
def assertWarns (self, callable, msg='')
def assertWarnsRegex (self, callable, regex, msg='')
def assertExpected (self, s, subname=None)
- Public Member Functions inherited from expecttest.TestCase
def assertExpectedInline (self, actual, expect, skip=0)

Additional Inherited Members

- Static Public Attributes inherited from common_utils.TestCase
int precision = 1
 maxDiff = None
 assertRegex = unittest.TestCase.assertRegexpMatches
 assertRaisesRegex = unittest.TestCase.assertRaisesRegexp
- Static Public Attributes inherited from expecttest.TestCase
bool longMessage = True

Detailed Description

Definition at line 8 of file

The documentation for this class was generated from the following file: