             printf("***ERROR***: %s\n", cudaGetErrorString(err));
         
         float* d_out;
-        cudaMalloc((void **) &(d_out), sizeof(float)*kerns.num*outputs[batch].lens[batch_size-1]);
+        cudaMalloc((void **) &(d_out), sizeof(float)*kerns.num*output.lens[batch_size-1]);
         if (DEBUG) {
             printf("Done allocating d_out \n");
         }

    }
    
    for (int batch=0; batch < n_batches; batch++) {
        // Allocate and initialize wordvecs.w and wordvecs.lens on GPU
        d_wordvec.dim = dim;
        d_wordvec.b_size = batch_size;

    }
    printf("])\n");
}


void conv1d(WORDVECS wordvec, KERNS kerns, OUTPUTS output){
    /*
