Skip to content

Commit 50426ae

Browse files
committed
Make AD warning be not an error so regression tests run
1 parent 9b03cf4 commit 50426ae

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

regression-tests/test-results/pure2-autodiff.cpp2.output

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@ ad_test:/* @autodiff @print */ type =
899899
return;
900900
}
901901
}
902+
AD: Warning - reverse mode differentiation is very experimental
902903

903904

904905
ad_test_reverse:/* @autodiff<"reverse"> @print */ type =
@@ -1439,6 +1440,5 @@ ad_test_2:/* @autodiff<"order=2"> @print */ type =
14391440
return;
14401441
}
14411442
}
1442-
1443-
pure2-autodiff.cpp2(195,1): error: while applying @autodiff - AD: Warning reverse mode differentiation is very experimental.
1443+
ok (all Cpp2, passes safety checks)
14441444

source/reflect.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10196,7 +10196,7 @@ auto autodiff(meta::type_declaration& t) -> void
1019610196
}
1019710197

1019810198
if (reverse) {
10199-
CPP2_UFCS(error)(t, "AD: Warning reverse mode differentiation is very experimental.");
10199+
std::cout << "AD: Warning - reverse mode differentiation is very experimental\n";
1020010200
}
1020110201

1020210202
autodiff_context ad_ctx {order, reverse};

source/reflect.h2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6174,7 +6174,7 @@ autodiff: (inout t: meta::type_declaration) =
61746174
}
61756175

61766176
if reverse {
6177-
t.error("AD: Warning reverse mode differentiation is very experimental.");
6177+
std::cout << "AD: Warning - reverse mode differentiation is very experimental\n";
61786178
}
61796179

61806180
ad_ctx: autodiff_context = (order, reverse);

0 commit comments

Comments
 (0)