- Single
themes.tsxfile, ~200 lines.- Flashless (with ssr).
- Typescript.
import React, { useContext, useState } from "react";
// utils| { | |
| "compilerOptions": { | |
| // type checking | |
| "strict": true, | |
| // modules | |
| "module": "esnext", | |
| "moduleResolution": "nodenext", | |
| "paths": { | |
| "@/*": ["./src/*"] |
| find . -mindepth 1 -maxdepth 1 -type d -print | xargs -I {} bash -c 'git -C {} rev-parse --is-inside-work-tree &> /dev/null && echo {} && git -C {} checkout master && git -C {} reset --hard && git -C {} pull' |
| cross(a, b)'s z component: | |
| z = a.x * b.y - a.y * b.x |
| https://bugs.chromium.org/p/chromium/issues/detail?id=167569 |
Just copy these:-
1)libcrypto-1_1-x64.dll
2)libssl-1_1-x64.dll
from D:\Anaconda3\Library\bin to D:\Anaconda3\DLLs.
| import torch | |
| from torch import nn | |
| class MultiHeadAttention(nn.Module): | |
| def __init__(self, in_size, n_heads=1, scaled=True): | |
| super().__init__() | |
| # in_size = d_k in the paper | |
| self.scale = in_size ** 0.5 if scaled else 1 |