Skip to content

Commit

Permalink
[cker] Fix wrong comment (#13985)
Browse files Browse the repository at this point in the history
This commit fixes a wrong comment.
  - sparse shape -> broadcast shape

ONE-DCO-1.0-Signed-off-by: ragmani <[email protected]>
  • Loading branch information
ragmani authored Sep 11, 2024
1 parent d8fa131 commit 54b9838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compute/cker/include/cker/train/operation/Loss.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void CategoricalCrossEntropyWithLogits(const Shape &logits_shape, const T *logit
const Shape &grad_shape, T *grad_data,
LossReductionType reduction_type)
{
// TODO Enable sparse shapes
// TODO Enable broadcast shapes
if (loss_out_shape.DimensionsCount() != 1)
throw std::runtime_error(
"cker::CategoricalCrossEntropyWithLogits: loss output dimension count should be 1");
Expand Down

0 comments on commit 54b9838

Please sign in to comment.