From 9c9d80d0e678eaf67d651270fdf62cd50c463bcb Mon Sep 17 00:00:00 2001 From: rajh619 <30085127+rajh619@users.noreply.github.com> Date: Sun, 24 Jun 2018 14:47:08 +0530 Subject: [PATCH] Windows VS2015 Compile error - 'conversion from 'double' to 'float' requires a narrowing conversion' Compiling of TVM fails in Windows 10 - VS 2015 environment . Reason : conversion error from float to double . This seems to be a compiler bug and we have to explicitly add "f" suffix to float values during uniform intialization . ref: https://stackoverflow.com/a/47913325/3814804 --- nnvm/include/nnvm/top/nn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nnvm/include/nnvm/top/nn.h b/nnvm/include/nnvm/top/nn.h index 0e0b03a72ebb..69d49cd99696 100644 --- a/nnvm/include/nnvm/top/nn.h +++ b/nnvm/include/nnvm/top/nn.h @@ -349,7 +349,7 @@ struct MultiBoxTransformLocParam : public dmlc::Parameter{0.1, 0.1, 0.2, 0.2}) + DMLC_DECLARE_FIELD(variances).set_default(Tuple({0.1f, 0.1f, 0.2f, 0.2f})) .describe("Variances to be decoded from box regression output."); } };