Skip to content

Commit f844059

Browse files
committed
Add note in docs
1 parent d618a90 commit f844059

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/docs/building-blocks/6-optimizers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ optimized_program.save(YOUR_SAVE_PATH)
122122

123123
The resulting file is in plain-text JSON format. It contains all the parameters and steps in the source program. You can always read it and see what the optimizer generated.
124124

125+
You can add `save_field_meta` to additionally save the list of fields with the keys, `name`, `field_type`, `description`, and `prefix` with: `optimized_program.save(YOUR_SAVE_PATH, save_field_meta=True).
126+
125127
### Loading a program
126128

127129
To load a program from a file, you can instantiate an object from that class and then call the load method on it.

0 commit comments

Comments
 (0)