参考示例文档:https://www.mtyun.com/doc/products/ai/dls/quickstart-caffe
注意下面加粗有注释的地方。
DLS的Caffe服务
layer {
name: “mnist”
type: “MemoryData” //原生Caffe数据层使用Type是“Data”,而DLS上的Caffe服务建议使用“MemoryData”
top: “data”
top: “label”
include {
phase: TRAIN
}
transform_param {
scale: 0.00390625
}
memory_data_param {//需要写个 memory_data_param
的数据源,这个是报错的主要原因
source: “hdfs://caffe/mnist_train_lmdb”//声明数据在DLS文件系统中的路径,并以“hdfs://”协议开头
batch_size: 64
channels: 1
height: 28
width: 28
backend: LMDB
}
}