Caffe2 - Python API
A deep learning, cross platform ML framework
db_input.py
1 ## @package db_input
2 # Module caffe2.python.helpers.db_input
3 from __future__ import absolute_import
4 from __future__ import division
5 from __future__ import print_function
6 from __future__ import unicode_literals
7 
8 def db_input(model, blobs_out, batch_size, db, db_type):
9  dbreader_name = "dbreader_" + db
10  dbreader = model.param_init_net.CreateDB(
11  [],
12  dbreader_name,
13  db=db,
14  db_type=db_type,
15  )
16  return model.net.TensorProtosDBInput(
17  dbreader, blobs_out, batch_size=batch_size)
Module caffe2.python.helpers.db_input.