blocks { idx: 0 parent_idx: -1 vars { name: "recordio_reader" type { type: RECORDIO_READER } } vars { name: "batch_reader" type { type: BATCH_READER } } ops { outputs { parameter: "reader" arguments: "recordio_reader" } type: "create_recordio_reader" attrs { name: "file" type: string string: "./data.recordio" } attrs { name: "file" type: shape } } ops { input { parameter: "reader" arguments: "recordio_reader" } outputs { parameter: "reader" arguments: "batch_reader" } type: "create_batch_reader" attrs { name: "batch_size" type: int int: 100 } } ops { inputs { parameter: "reader" arguments: "batch_reader" } type: "reader_loop" attrs { name: "sub_block" type: BLOCK block_idx: 1 } } } blocks { idx: 1 parent_idx: 0 vars { name: "x" type { type: LOD_TENSOR lod_tensor { tensor { data_type: FLOAT32 dims: 13 } } } persistable: false } vars { name: "y" type { type: LOD_TENSOR lod_tensor { tensor { data_type: FLOAT32 dims: 1 } } } persistable: false } ops { inputs { parameter: "reader" arguments: "batch_reader" } outputs { parameter: "Out" arguments: "x" } outputs { parameter: "Out" arguments: "y" } type: "read" } }