File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 16
16
import paddle .v2 .topology as topology
17
17
import paddle .v2 .data_type as data_type
18
18
import paddle .trainer_config_helpers as conf_helps
19
+ import paddle .trainer .PyDataProvider2 as pydp2
19
20
20
21
21
22
class TestTopology (unittest .TestCase ):
@@ -35,13 +36,13 @@ def test_data_type(self):
35
36
pixel_data_type = filter (lambda type : type [0 ] == "pixel" , data_types )
36
37
self .assertEqual (len (pixel_data_type ), 1 )
37
38
pixel_data_type = pixel_data_type [0 ]
38
- self .assertEqual (pixel_data_type [1 ].type , data_type .DataType .Dense )
39
+ self .assertEqual (pixel_data_type [1 ].type , pydp2 .DataType .Dense )
39
40
self .assertEqual (pixel_data_type [1 ].dim , 784 )
40
41
41
42
label_data_type = filter (lambda type : type [0 ] == "label" , data_types )
42
43
self .assertEqual (len (label_data_type ), 1 )
43
44
label_data_type = label_data_type [0 ]
44
- self .assertEqual (label_data_type [1 ].type , data_type .DataType .Index )
45
+ self .assertEqual (label_data_type [1 ].type , pydp2 .DataType .Index )
45
46
self .assertEqual (label_data_type [1 ].dim , 10 )
46
47
47
48
def test_get_layer (self ):
You can’t perform that action at this time.
0 commit comments