Kamyar Nazeri
Kamyar Nazeri
```ts type LengthOfString = T extends `${infer _}${infer TRight}` ? LengthOfString : TRes['length']; ```
```ts type Split = T extends `${infer TLeft}${TSep}${infer TRight}` ? [TLeft, ...Split] : [T] ```
```ts type JoinString = T extends [infer TFirst extends string, ...infer TRest extends string[]] ? `${TFirst}${TRest extends [] ? '' : `${TSep}${JoinString}`}` : '' declare function join(sep: T) : (...args:...
I believe the label smoothing is not performed for fake samples as mentioned under **Use Soft and Noisy Labels** section in this repo. In the referenced paper by [Salimans et....