Hi,
Say we have two tensor priors, and loc_cat,
I want to set the type of priors same as loc_cat,
in python, we can use the following code:
priors.type(loc_cat.data.type)
So how to do that in cpp libtorch?
Thanks.
Hi,
Say we have two tensor priors, and loc_cat,
I want to set the type of priors same as loc_cat,
in python, we can use the following code:
priors.type(loc_cat.data.type)
So how to do that in cpp libtorch?
Thanks.