Snapdragon Neural Processing Engine SDK
Reference Guide
Model Conversion FAQ

MemoryData Type


MemoryData Type

Caffe models with an input of type MemoryData, such as:

layer {
  name: "resnet_18"
  type: "MemoryData"
  top: "data"
  top: "label"
  memory_data_param {
    batch_size: 32
    channels: 3
    height: 224
    width: 224
  }
}

can be simply converted with a slight modification to the prototxt. Change the MemoryData type it into an Input type as follows:

layer {
  name: "data"
  type: "Input"
  top: "data"
  input_param { shape: { dim: 32 dim: 3 dim: 224 dim: 224 } }
}