This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sequenceDiagram | |
| autonumber | |
| participant Dev as Developer | |
| participant AS as Auth Server (Google) | |
| participant App as App Server | |
| participant U as User (Browser) | |
| Note over Dev, AS: [ Provisioning Phase ] | |
| Dev->>AS: Register App (Name, Redirect URIs, Scopes) | |
| AS-->>Dev: Issue Client ID & Client Secret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sortedcontainers import SortedList,SortedDict | |
| class TreeItem: | |
| def __init__(self, name:str): | |
| self.name = name | |
| def __lt__(self, other): | |
| if not isinstance(other,TreeItem): | |
| raise NotImplemented | |
| return len(self.name)<len(other.name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras import layers,Sequential | |
| from tensorflow.keras.preprocessing import sequence | |
| class Attention(layers.Layer): | |
| def __init__(self,**kwargs): | |
| super().__init__(**kwargs) | |
| self.dense = layers.Dense(30,activation='relu') | |
| self.attention_values = layers.Dense(1) | |