To convert HLO text to an SVG or PNG file, follow these steps:
-
Modify the
src/HLO/HLO2PNG.jsfile:-
Import your HLO text file. For example:
import text from "./pbtxt/gpt2_tp=1_n_layer=1.js";
-
Specify the
dotFileyou want to generate. For example:const dotFile = 'gpt2_tp=1_n_layer=1.dot';
-
-
Run the conversion:
Once you have made the necessary changes, run the script to convert the HLO text to an SVG or PNG file.
-
Output:
The result will be a visual representation of the HLO graph in
src/HLO/xxx.svg, saved as an SVG or PNG.
- Ensure that the file paths are correct.
- This process requires the appropriate environment and dependencies for graph visualization.