I added Converter.get_returnn_config_serialized which allows to get a serialized string containing extern_data and the network dict from the Converter. The serialization is copied from returnn_common, there are just two small adjustments regarding Size inputs and floordiv (see separate commit which can be squashed later).
An example usage would be
converter = verify_torch_and_convert_to_returnn(...)
with open(...) as f:
f.write(converter.get_returnn_config_serialized())
I added
Converter.get_returnn_config_serialized
which allows to get a serialized string containingextern_data
and thenetwork
dict from theConverter
. The serialization is copied from returnn_common, there are just two small adjustments regardingSize
inputs andfloordiv
(see separate commit which can be squashed later).An example usage would be