Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion nn_meter/predictor/prediction/extract_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def get_predict_features(config):
#features = [inputh, len(itensors)]
features = [inputh]
for it in itensors:
#co = it[-1]
Copy link
Author

@manideep-bandaru manideep-bandaru May 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part where we are extracting the channels from a tensor, it depends on how the features are actually composed in a tensor, few models have { n , c , h , w } and few models have { n , h , w , c } hence
co = it[-1] or co = it[-2] or co = it[1] matters on the model we are sending for the prediction so can you please look into this very soon !!

co = it[-2]
features.append(co)
if len(features) < 5:
Expand Down