CaffeSpark configuration
the layer index in the network protocol file
construct a sample RDD
construct a sample RDD
spark context
RDD created from this source
batch size
batch size
make a dummy data blob to be used by Solver threads
make a dummy data blob to be used by Solver threads
a dummy data blob
make a dummy data blob to be used by Solver threads
make a dummy data blob to be used by Solver threads
a dummy data blob
initialization of a Source within a process
initialization of a Source within a process
true if successfully initialized
create a batch of samples extracted from source queue
create a batch of samples extracted from source queue
This method is Invoked by Transformer thread. You should extract samples from source queue, parse it and produce a batch.
holder for sample Ids
holder for label blob
true if successful
adjust batch size
abstract image data source for images. Its subclass should construct RDD of ((id: String, label: String), value : byte[]).