Skip to content
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

Evaluate torch model to get output dimension #166

Merged
merged 2 commits into from
Jan 17, 2025
Merged

Conversation

Robbybp
Copy link
Collaborator

@Robbybp Robbybp commented Jan 16, 2025

An attempt to fix #165. The alternative would be to search for the last linear layer, then if no linear layers exist, use the input dimension.

ext/MathOptAIPythonCallExt.jl Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (7496eec) to head (e637bc9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #166   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines          520       523    +3     
=========================================
+ Hits           520       523    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@odow odow merged commit 2bbff7a into main Jan 17, 2025
7 checks passed
@odow odow deleted the rp/torch-graybox-output branch January 17, 2025 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't rely on out_features to get output dimension of PytorchModel
2 participants