Cast

class dragon.vm.caffe.layers.Cast(layer_param)[source]

Cast the data type of input.

Examples:

layer {
    type: "Cast"
    bottom: "ip2/fp16"
    top: "ip2/fp32"
    cast_param {
        dtype: "float32"
    }
}