- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.3k
Add input shapes validation #6218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| 
 | 
| The binary size change of libncnn.so (bytes) 
 | 
| Codecov Report❌ Patch coverage is  
 Additional details and impacted files@@            Coverage Diff             @@
##           master    #6218      +/-   ##
==========================================
+ Coverage   95.85%   95.89%   +0.03%     
==========================================
  Files         840      840              
  Lines      265625   265631       +6     
==========================================
+ Hits       254628   254737     +109     
+ Misses      10997    10894     -103     ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
 | 
        
          
                src/net.cpp
              
                Outdated
          
        
      | Mat shape = d->net->blobs()[blob_index].shape; | ||
| if (shape.total() && (shape.w != in.w) && (shape.h != in.h) && (shape.d != in.d) && (shape.c != in.c)) | ||
| return -1; | ||
|  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 这地方是不是得 || 而不是 &&
- shape 总是 pack1 的,而 in 可能是任意 pack,要考虑有 pack 的情形
- shape 中可能存在 w h d c <=0 的情形,表示动态,要考虑这种情形
b3df081    to
    614eaca      
    Compare
  
    
No description provided.