Skip to content

Assertion error about targets.shape[3] during Backprop. #19

Description

@neuralix

Hi Nitish,

I met this kind of error when i run train_convnet.
"train_convnet: cudamat_conv_gemm.cu:691: void convOutpGemm(cudamat, cudamat_, cudamat*, Shape4D, Shape4D, Shape4D, ConvDesc, float, float, bool): Assertion `num_input_channels * filterModuleMult == num_input_channels3Mult' failed."

after analyzing, I found the error occur a part below.

void ConvEdge::ComputeOuter(Matrix& input, Matrix& deriv_output) {
...
if (partial_sum_locs > 1) {
...
} else {
...
}

dt_temp(:targets)'s element shape[3] is strange...
when I change like it,
'if (partial_sum_locs > 1) { --> if (0) {'
the problem was not generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions