Skip to content

How do I specify torch::nn::Upsample scale_factor? #27620

Discussion options

You must be logged in to vote

I found the answer in pytorch cppdocs

torch::nn::Upsample(torch::nn::UpsampleOptions().scale_factor(std::vector<double>({2}))),

Replies: 1 comment 1 reply

Comment options

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

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