Skip to content

How should I write a key remap for an enum type? #1662

Closed Answered by zemelLeong
zemelLeong asked this question in Q&A
Discussion options

You must be logged in to vote

It seems that no special handling is required for enums.

LoadArgs::new(model_path.into())
  .with_key_remap("downsample.0", "downsample.layers.0")
  .with_key_remap("downsample.1", "downsample.layers.1")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@laggui
Comment options

Answer selected by zemelLeong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants