[{"title":"( 77 个子文件 80KB ) keras-transformer:变压器的Keras实现-源码","children":[{"title":"keras-transformer-master","children":[{"title":"Walkthrough.md <span style='color:#111;'> 22.47KB </span>","children":null,"spread":false},{"title":"keras_transformer","children":[{"title":"keras_transformer","children":[{"title":"utils","children":[{"title":"context_utils.py <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"common_utils.py <span style='color:#111;'> 589B </span>","children":null,"spread":false},{"title":"io_utils.py <span style='color:#111;'> 800B </span>","children":null,"spread":false}],"spread":true},{"title":"generators","children":[{"title":"InnerGenerator.py <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"outer","children":[{"title":"OuterGeneratorABC.py <span style='color:#111;'> 335B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"PandasGenerator.py <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"core","children":[{"title":"TiedProjectionLayer.py <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"Transformer.py <span style='color:#111;'> 8.35KB </span>","children":null,"spread":false},{"title":"attention","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"DotProductAttention.py <span style='color:#111;'> 5.79KB </span>","children":null,"spread":false},{"title":"MultiHeadAttention.py <span style='color:#111;'> 12.29KB </span>","children":null,"spread":false}],"spread":true},{"title":"PositionalEncodingLayer.py <span style='color:#111;'> 3.56KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"encoder_decoder","children":[{"title":"EncoderDecoder.py <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"sub_layers","children":[{"title":"PositionWiseFeedForwardSublayer.py <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"SelfAttentionSublayer.py <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false}],"spread":false},{"title":"DecoderBlockStack.py <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"EncoderBlockStack.py <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"EncoderBlock.py <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"normalization","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"LayerNormalization.py <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false}],"spread":false},{"title":"DecoderBlock.py <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false}],"spread":true},{"title":"ProjectionLayer.py <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"TiedEmbedderProjector.py <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"processors","children":[{"title":"ProcessorABC.py <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"processor_factory.py <span style='color:#111;'> 447B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"SubWordProcessor.py <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"DecodingCompatibleProcessorABC.py <span style='color:#111;'> 658B </span>","children":null,"spread":false}],"spread":true},{"title":"decoding","children":[{"title":"GreedyDecoder.py <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"DecoderABC.py <span style='color:#111;'> 1008B </span>","children":null,"spread":false},{"title":"BeamSearchDecoder.py <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"training","children":[{"title":"custom_serialization","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"custom_layers.py <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"custom_object_handler.py <span style='color:#111;'> 732B </span>","children":null,"spread":false}],"spread":true},{"title":"Trainer.py <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"TrainerABC.py <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"factories","children":[{"title":"loss_factory.py <span style='color:#111;'> 831B </span>","children":null,"spread":false},{"title":"optimizer_factory.py <span style='color:#111;'> 394B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"callback_factory.py <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"custom_weight_factory.py <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false}],"spread":false},{"title":"custom_callbacks","children":[{"title":"CustomLearningRateScheduler.py <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"CustomCallbackABC.py <span style='color:#111;'> 309B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"CustomCheckpointer.py <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"demo","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"translation","children":[{"title":"TranslationDataGenerator.py <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false},{"title":"training_conf1.json <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false},{"title":"decoding_conf.json <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":"training_conf2.json <span style='color:#111;'> 3.20KB </span>","children":null,"spread":false},{"title":"demo_execution.py <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"samples.json <span style='color:#111;'> 312B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"TestTiedEmbeddings.py <span style='color:#111;'> 13.87KB </span>","children":null,"spread":false},{"title":"TestCustomLoss.py <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"TestPositionalEncoding.py <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"TestMasking.py <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"TestGenerators.py <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"TestQKMask.py <span style='color:#111;'> 807B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"TestBPE.py <span style='color:#111;'> 3.18KB </span>","children":null,"spread":false},{"title":"TestContextMask.py <span style='color:#111;'> 809B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE.txt <span style='color:#111;'> 578B </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 777B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"Guide.md <span style='color:#111;'> 26.90KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 50B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]