Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.17 KB

memorydata.md

File metadata and controls

25 lines (18 loc) · 1.17 KB
title
Memory Data Layer

Memory Data Layer

The memory data layer reads data directly from memory, without copying it. In order to use it, one must call MemoryDataLayer::Reset (from C++) or Net.set_input_arrays (from Python) in order to specify a source of contiguous data (as 4D row major array), which is read one batch-sized chunk at a time.

Parameters

{% highlight Protobuf %} {% include proto/MemoryDataParameter.txt %} {% endhighlight %}

  • Parameters
    • Required
      • batch_size, channels, height, width: specify the size of input chunks to read from memory