Fix naming for kl_div and binary_cross_entropy functional options (#30146)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30146

This PR fixes naming for kl_div and binary_cross_entropy functional options, to be more consistent with the naming scheme of other functional options.

Test Plan: Imported from OSS

Differential Revision: D18618971

Pulled By: yf225

fbshipit-source-id: 2af62c1a0ace2cd0c36c2f1071639bf131d8fe61
This commit is contained in:
Will Feng
2019-11-20 12:12:29 -08:00
committed by Facebook Github Bot
parent 9cb8fb61c2
commit a460c856dd
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -2488,7 +2488,7 @@ TEST_F(FunctionalTest, BCEWithLogitsLoss) {
F::BinaryCrossEntropyWithLogitsFuncOptions().weight(weight)
),
F::binary_cross_entropy(sigmoid(output), target,
F::BCELossFuncOptions().weight(weight)
F::BinaryCrossEntropyFuncOptions().weight(weight)
)
));
@@ -2505,7 +2505,7 @@ TEST_F(FunctionalTest, BCEWithLogitsLoss) {
F::BinaryCrossEntropyWithLogitsFuncOptions().reduction(torch::kNone)
),
F::binary_cross_entropy(sigmoid(output), target,
F::BCELossFuncOptions().reduction(torch::kNone)
F::BinaryCrossEntropyFuncOptions().reduction(torch::kNone)
)
));
@@ -2515,7 +2515,7 @@ TEST_F(FunctionalTest, BCEWithLogitsLoss) {
F::BinaryCrossEntropyWithLogitsFuncOptions().weight(weight)
),
F::binary_cross_entropy(sigmoid(output), target,
F::BCELossFuncOptions().weight(weight)
F::BinaryCrossEntropyFuncOptions().weight(weight)
)
));
}