huggingface / huggingface/sharp-transformers

Assets/Scripts/Sentence Similarity/SentenceSimilarity.cs(92,77): error CS1503: Argument 2: cannot convert from 'bool' to 'Unity.Sentis.TensorFloat'

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
200
Forks
17
PR merge metrics
No merged PRs in 30d

Description

**com.unity.sentis : 1.2.0-exp.2 · September 20, 2023**
**fix :**
///
/// We calculate the similarity scores between the input sequence (what the user typed) and the comparison
/// sequences (the robot action list)
/// This similarity score is simply the cosine similarity. It is calculated as the cosine of the angle between two vectors.
/// It is particularly useful when your texts are not the same length
///
///
///
///
public TensorFloat SentenceSimilarityScores(TensorFloat InputSequence, TensorFloat ComparisonSequences)
{
TensorFloat SentenceSimilarityScores_ = ops.MatMul2D(InputSequence, ComparisonSequences, false, true);
return SentenceSimilarityScores_;
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.