本文簡要介紹python語言中 torchaudio.transforms.ComplexNorm
的用法。
用法:
class torchaudio.transforms.ComplexNorm(power: float = 1.0)
power(float,可選的) -規範的力量。 (默認:
1.0
)計算複張量輸入的範數。
- 示例
>>> complex_tensor = ... # Tensor shape of (…, complex=2) >>> transform = transforms.ComplexNorm(power=2) >>> complex_norm = transform(complex_tensor)
參數:
相關用法
- Python PyTorch Compose用法及代碼示例
- Python PyTorch Collator用法及代碼示例
- Python PyTorch ConvTranspose3d用法及代碼示例
- Python PyTorch Conv1d用法及代碼示例
- Python PyTorch CosineAnnealingWarmRestarts.step用法及代碼示例
- Python PyTorch CocoCaptions用法及代碼示例
- Python PyTorch ContinuousBernoulli用法及代碼示例
- Python PyTorch ConstantPad2d用法及代碼示例
- Python PyTorch ConvTranspose2d用法及代碼示例
- Python PyTorch Concater用法及代碼示例
- Python PyTorch ConstantLR用法及代碼示例
- Python PyTorch Conv2d用法及代碼示例
- Python PyTorch CosineSimilarity用法及代碼示例
- Python PyTorch ConstantPad1d用法及代碼示例
- Python PyTorch ConstraintRegistry.register用法及代碼示例
- Python PyTorch Conv3d用法及代碼示例
- Python PyTorch ConstantPad3d用法及代碼示例
- Python PyTorch CSVParser用法及代碼示例
- Python PyTorch CrossEntropyLoss用法及代碼示例
- Python PyTorch ChannelShuffle用法及代碼示例
- Python PyTorch CSVDictParser用法及代碼示例
- Python PyTorch Cityscapes用法及代碼示例
- Python PyTorch ChainedScheduler用法及代碼示例
- Python PyTorch Cauchy用法及代碼示例
- Python PyTorch CriteoIterDataPipe用法及代碼示例
注:本文由純淨天空篩選整理自pytorch.org大神的英文原創作品 torchaudio.transforms.ComplexNorm。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。