(self, inputs)
| 33 | self.drop_prob = drop_prob |
| 34 | |
| 35 | def forward(self, inputs): |
| 36 | if self.training: |
| 37 | return dropout(inputs, self.drop_prob, training=True) |
| 38 | else: |
| 39 | return inputs |
| 40 | |
| 41 | def _module_info_string(self) -> str: |
| 42 | return "drop_prob={drop_prob}".format(drop_prob=self.drop_prob) |