Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# ================================= tips =================================== | |
# In PyTorch's GRU, "no h_0 argument" == `h_0=None` == "h_0 is zeros" | |
# ========================================================================== | |
from torch.nn import GRU | |
from torch import tensor | |
gru = GRU(3, 3, batch_first=True) | |
i = tensor([[[1., 2., 3.]]]) | |
h = tensor([[[0., 0., 0.]]]) |
This file contains 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
# Audio Preemphasis/Deemphasis in Notebook. | |
# You can hear the audio see spectrograms. | |
!pip install librosa>=0.8.1 | |
import IPython | |
from IPython.display import display, Audio | |
import numpy as np | |
import librosa | |
import librosa.display |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 u3 | |
d = u3.U3() # try automatic open | |
d.configIO(FIOAnalog = 0, EIOAnalog = 0) # set all fio digital # https://github.com/labjack/LabJackPython/blob/1399afafef4e29d7081e223b0ecac98d7bdd67a4/src/u3.py#L336 | |
def send3bit(fio_No: int, bits: [int]): | |
"""Send 3-bit big endian message | |
Arguments: | |
fio_No -- LabJack U3's flexible IO port number. e.g: [0,0,1] (==1) | |
bits -- message with 3-bit big endian |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder