本文簡要介紹python語言中 torchrec.models.deepfm.DenseArch 的用法。
- 用法:- class torchrec.models.deepfm.DenseArch(in_features: int, hidden_layer_size: int, embedding_dim: int)
- in_features(int) -密集輸入特征的維度。 
- hidden_layer_size(int) -DenseArch 中隱藏層的大小。 
- embedding_dim(int) -sparseArch 的embedding_dimension 大小相同 
- device(torch.device) -默認計算設備。 
 
- 基礎: - torch.nn.modules.module.Module- 處理DeepFMNN模型的密集特征。輸出層的大小適合 EmbeddingBagCollection 嵌入的 embedding_dimension。 - 例子: - B = 20 D = 3 in_features = 10 dense_arch = DenseArch(in_features=10, hidden_layer_size=10, embedding_dim=D) dense_embedded = dense_arch(torch.rand((B, 10)))
參數:
相關用法
- Python PyTorch DeQuantize用法及代碼示例
- Python PyTorch DeepFM用法及代碼示例
- Python PyTorch Decompressor用法及代碼示例
- Python PyTorch DeepFM.forward用法及代碼示例
- Python PyTorch Demultiplexer用法及代碼示例
- Python PyTorch DistributedModelParallel用法及代碼示例
- Python PyTorch DistributedDataParallel用法及代碼示例
- Python PyTorch DistributedDataParallel.register_comm_hook用法及代碼示例
- Python PyTorch DataFrameMaker用法及代碼示例
- Python PyTorch DLRM用法及代碼示例
- Python PyTorch DistributedSampler用法及代碼示例
- Python PyTorch DistributedDataParallel.join用法及代碼示例
- Python PyTorch Dropout用法及代碼示例
- Python PyTorch DistributedModelParallel.named_parameters用法及代碼示例
- Python PyTorch Dropout3d用法及代碼示例
- Python PyTorch DataParallel用法及代碼示例
- Python PyTorch DistributedModelParallel.state_dict用法及代碼示例
- Python PyTorch DistributedDataParallel.no_sync用法及代碼示例
- Python PyTorch Dropout2d用法及代碼示例
- Python PyTorch DistributedModelParallel.named_buffers用法及代碼示例
- Python PyTorch Dirichlet用法及代碼示例
- Python PyTorch DistributedOptimizer用法及代碼示例
- Python PyTorch DatasetFolder.find_classes用法及代碼示例
- Python PyTorch frexp用法及代碼示例
- Python PyTorch jvp用法及代碼示例
注:本文由純淨天空篩選整理自pytorch.org大神的英文原創作品 torchrec.models.deepfm.DenseArch。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
