Sorry for the delayed response – one way to understand what is going on here is to look at the output graph via --dump-graph-DAG=file.dot and then use dot to look over the Constant nodes in the graph to see if any were split or duplicated. This could happen if e.g. there are multiple users and constant folding occurred. It may be necessary to add some option to prevent duplication of weights to the graph optimizer, but not sure.