Skip to content

Detach charge embedding for torchscript export#7

Open
DennisGoldfarb wants to merge 1 commit intomainfrom
codex/find-output-models-from-export-command
Open

Detach charge embedding for torchscript export#7
DennisGoldfarb wants to merge 1 commit intomainfrom
codex/find-output-models-from-export-command

Conversation

@DennisGoldfarb
Copy link
Copy Markdown
Contributor

Summary

  • Detach charge embedding features before feeding them into the dense layer to prevent torchscript from treating gradient-carrying constants as constants
  • Run export in evaluation mode with torch.no_grad() and detach knot inputs for ONNX export

Testing

  • python -m py_compile Altimeter/altimeter/model.py Altimeter/altimeter/export.py

https://chatgpt.com/codex/tasks/task_e_689958678ee48325b62633a124d72db3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant