Skip to content

Commit

Permalink
Add explicit c10:: namespace to converter (pytorch#13593)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#13593

Should fix up master

Reviewed By: orionr

Differential Revision: D12929779

fbshipit-source-id: 23119f5bf1d9f1e37e8ed01bfa2cc40647725390
  • Loading branch information
bwasti authored and facebook-github-bot committed Nov 5, 2018
1 parent 7faca2a commit f3c197d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions aten/src/ATen/core/Scalar.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ class CAFFE2_API Scalar {

#undef DEFINE_IMPLICIT_CTOR

#define DEFINE_IMPLICIT_COMPLEX_CTOR(type,name,member) \
Scalar(type vv) \
: tag(Tag::HAS_##member) { \
v . member[0] = convert<double>(vv.real()); \
v . member[1] = convert<double>(vv.imag()); \
#define DEFINE_IMPLICIT_COMPLEX_CTOR(type, name, member) \
Scalar(type vv) : tag(Tag::HAS_##member) { \
v.member[0] = c10::convert<double>(vv.real()); \
v.member[1] = c10::convert<double>(vv.imag()); \
}

DEFINE_IMPLICIT_COMPLEX_CTOR(at::ComplexHalf,ComplexHalf,z)
Expand Down

0 comments on commit f3c197d

Please sign in to comment.