Skip to content

Instantly share code, notes, and snippets.

View LevanKvirkvelia's full-sized avatar
🎯
F

Levan Kvirkvelia LevanKvirkvelia

🎯
F
View GitHub Profile
@LevanKvirkvelia
LevanKvirkvelia / nanoBERT.py
Last active February 14, 2024 23:25
nanoBERT, inspired by @karpathy's nanoGPT
import torch.nn as nn
import torch.nn.functional as F
import math
from typing import Optional, Tuple
class BertSelfAttention(nn.Module):
def __init__(self, config):
super().__init__()
if config.hidden_size % config.num_attention_heads != 0:
diff --git a/src/decompilers/es6/importsToEs6.ts b/src/decompilers/es6/importsToEs6.ts
index d5290b6..316d50d 100644
--- a/src/decompilers/es6/importsToEs6.ts
+++ b/src/decompilers/es6/importsToEs6.ts
@@ -49,6 +49,7 @@ export default class ImportsToEs6 extends Plugin {
},
});
const [newPath] = varDeclar.parentPath.insertBefore(t.importDeclaration([t.importDefaultSpecifier(varIdentifier)], path.node.arguments[0]));
+ // @ts-ignore
newPath.scope.registerBinding('module', newPath);
{
"name": "diary-app",
"version": "8.0.0",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"web": "webpack-dev-server -d --config ./web/webpack.config.js --inline --hot --colors --host 0.0.0.0",
"web:ts": "npm-run-all -p web tsc",
"start:ts": "npm-run-all -p start tsc",
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
</project>