summaryrefslogtreecommitdiff
path: root/python/caffe/test/test_layer_type_list.py
blob: 47f4cf6d0086f2c3d9535c865b599c008185b641 (plain)
1
2
3
4
5
6
7
8
9
10
11
import unittest

import caffe

class TestLayerTypeList(unittest.TestCase):

    def test_standard_types(self):
        #removing 'Data' from list 
        for type_name in ['Data', 'Convolution', 'InnerProduct']:
            self.assertIn(type_name, caffe.layer_type_list(),
                    '%s not in layer_type_list()' % type_name)