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
diff --git a/modeling_whisper_official0.py b/modeling_whisper0.py | |
index 1285034..4ab3bb0 100644 | |
--- a/modeling_whisper_official0.py | |
+++ b/modeling_whisper0.py | |
@@ -1,4 +1,4 @@ | |
-class WhisperEncoder(WhisperPreTrainedModel): | |
+class WhisperVQEncoder(WhisperPreTrainedModel): | |
""" | |
Transformer encoder consisting of *config.encoder_layers* self attention layers. Each layer is a | |
[`WhisperEncoderLayer`]. |
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
#!/bin/sh | |
hard_limit=$(git config hooks.filesizehardlimit) | |
soft_limit=$(git config hooks.filesizesoftlimit) | |
: ${hard_limit:=10000000} | |
: ${soft_limit:=1000000} | |
list_new_or_modified_files() | |
{ | |
git diff --staged --name-status|sed -e '/^D/ d; /^D/! s/.\s\+//' | |
} |
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 | |
import numpy as np | |
# Define Networks | |
# Define cross entropy loss | |
# Run session | |
# Calculate accuracy | |
# Output result |