public static CNTK.Value get_tensors(CNTK.NDShape shape, float[] src, int indices_begin, int indices_end, CNTK.DeviceDescriptor device) { var cpu_tensors = Util.get_minibatch_data_CPU(shape, src, indices_begin, indices_end); var result = CNTK.Value.CreateBatch(shape, cpu_tensors, device, true); return(result); }