djl-demo icon indicating copy to clipboard operation
djl-demo copied to clipboard

MXNet engine call failed: MXNetError: Check failed: dshp.ndim() == 3U (2 vs. 3) : Input data should be 3D in batch-num_filter-x

Open thesardorbroo opened this issue 8 months ago • 1 comments

Hi every one. I am learning DJL(Deep java library) and I have seen Malicious URL Detector post and I'm going to try it locally, but when I run the code I get error. image

I have tried to remove FEATURE_LENGTH but got another error: image

I want to solve the problem but I don't know how to do it( And I have some questions about source code of Malicious URL Detector line 71 and SequentialBlocks.

  1. Why we initialize 3D shape? in csv data only 2 column(first feature and second is label)
  2. Why we need a lot of blocks? What does it mean acctually? source code

thesardorbroo avatar Jun 27 '24 11:06 thesardorbroo