入门
教程 Notebooks
make_dataloader
on_fit_start
on_stage_start
on_stage_end
!new:
!name:
!ref
!copy
DynamicBatchSampler
speechbrain.dataio.samplers.DynamicBatchSampler
EndoderDecoderASR
.yaml
train.py
StreamingASR
技巧与窍门
2.x
API
create_experiment_directory()
parse_arguments()
Stage
Brain
make_deprecated_redirections()
load_hyperpyyaml()
RefTag
占位符
dump_hyperpyyaml()
resolve_references()
deref()
recursive_resolve()
parse_arithmetic()
recursive_update()
TestThing
TestThing.from_keys()
实现 dropout 的库。
Mirco Ravanelli 2020
类
Dropout2d
此函数实现 dropout 2d。
基类: Module
Module
此函数实现 dropout 2d。它随机将整个通道置零。
drop_rate (float) – 丢弃因子(介于 0 和 1 之间)。
inplace (bool) – 如果为 True,则使用原地操作。
示例
>>> drop = Dropout2d(drop_rate=0.5) >>> inputs = torch.rand(10, 50, 40) >>> output=drop(inputs) >>> output.shape torch.Size([10, 50, 40])
将 dropout 2d 应用于输入张量。
x (torch.Tensor (batch, time, channel1, channel2)) – 要进行 dropout 的输入。期望为 4D 张量。
x_drop – 通道被清零的张量。
torch.Tensor