mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
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:
committed by
Facebook Github Bot
parent
9cb8fb61c2
commit
a460c856dd
@@ -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)
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user