dotnet / dotnet/machinelearning

Using a target size ([32]) that is different to the input size ([32, 1]).

Open
#6,522 8 comments 1 reaction 0 assignees View on GitHub
area-TorchSharp needs-further-triage
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

**System Information (please complete the following information):**
- OS & Version: [e.g. Windows 10]
- ML.NET Version: [e.g. ML.NET v2.0.0]
- .NET Version: [e.g. .NET 4.7.2]
- Microsoft.ML.TorchSharp 0.20.0
- TorchSharp-cpu 0.99.1

**Describe the bug**

when trying to train SentenceSimilarity I get this warning::

Warning: Using a target size ([32]) that is different to the input size ([32, 1]). This will likely lead to incorrect results due to broadcasting. Please ensure they have the same size. (function mse_loss)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.