Update sd_token_similarity_calculator.ipynb
Browse files
sd_token_similarity_calculator.ipynb
CHANGED
@@ -214,7 +214,8 @@
|
|
214 |
" B = token[id_B]\n",
|
215 |
" _B = LA.vector_norm(B, ord=2)\n",
|
216 |
" result = torch.dot(A,B)/(_A*_B)\n",
|
217 |
-
" result = absolute_value(result.item())\n",
|
|
|
218 |
" dots[index] = result\n",
|
219 |
"\n",
|
220 |
"name_A = \"A of random type\"\n",
|
|
|
214 |
" B = token[id_B]\n",
|
215 |
" _B = LA.vector_norm(B, ord=2)\n",
|
216 |
" result = torch.dot(A,B)/(_A*_B)\n",
|
217 |
+
" #result = absolute_value(result.item())\n",
|
218 |
+
" result = result.item()\n",
|
219 |
" dots[index] = result\n",
|
220 |
"\n",
|
221 |
"name_A = \"A of random type\"\n",
|