Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enviroment list please #16

Open
whyx007 opened this issue Apr 2, 2020 · 5 comments
Open

enviroment list please #16

whyx007 opened this issue Apr 2, 2020 · 5 comments

Comments

@whyx007
Copy link

whyx007 commented Apr 2, 2020

Can anyone tell me which version of libtorch,opencv,visual stdio you use could works?
I have tried many times in the environment of vs2019, libtorch1.4, opencv 4.2.there is a bug at Darknet.cpp #line142 x = torch::cat({map_1, map_2}, 1); I guess the version of vs or libtorch is not match,so could anybody who has run successfully tell me what the version is

@lbdalmendray
Copy link

I have compilation errors. One of them is : namespace "torch::nn" has no member "BatchNorm" . This method does not appear in the documentation either. I looked for it in all versions. ( 0.1.12 - 1.6.0 ) .
Other compilation errors:

  • with_bias
    -BatchNormImpl
    -Conv2dOptions class does not contain stride_, padding_, groups_, with_bias_

Any suggestion?

@teplofizik
Copy link

For 1.3:

  • error: ‘torch::ExpandingArray<2> torch::nn::ConvOptions<2>::stride_’ is private within this context
    torch::nn::Conv2dOptions conv_options(
  • conv_options.stride_ = stride;
  • conv_options.padding_ = padding;
  • conv_options.groups_ = groups;
  • conv_options.with_bias_ = with_bias;
  • conv_options.stride(stride);
  • conv_options.padding(padding);
  • conv_options.groups(groups);
  • conv_options.with_bias(with_bias);

torch::nn::BatchNormOptions bn_options(

  • bn_options.affine_ = true;
  • bn_options.stateful_ = true;
  • bn_options.affine(true);
  • bn_options.stateful(true);

@xuweilin2014
Copy link

@lbdalmendray hi, have you solved your problem? I just met it too

@Qiuzhongyuan
Copy link

torch::nn::BatchNorm -> torch::nn::BatchNorm2d ;
conv_options.stride_ = stride -> conv_options.stride(stride)
torch::nn::BatchNormImpl -> torch::nn::BatchNorm2dImpl
and so on
@xuweilin2014

@Wangbenzhi
Copy link

For 1.3:

  • error: ‘torch::ExpandingArray<2> torch::nn::ConvOptions<2>::stride_’ is private within this context
    torch::nn::Conv2dOptions conv_options(

  • conv_options.stride_ = stride;

  • conv_options.padding_ = padding;

  • conv_options.groups_ = groups;

  • conv_options.with_bias_ = with_bias;

  • conv_options.stride(stride);

  • conv_options.padding(padding);

  • conv_options.groups(groups);

  • conv_options.with_bias(with_bias);

torch::nn::BatchNormOptions bn_options(

  • bn_options.affine_ = true;

  • bn_options.stateful_ = true;

  • bn_options.affine(true);

  • bn_options.stateful(true);

AWESOME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants