class_docstr: Estimator class for PyTorch models.
class_docstr_tok: ["Estimator","class","for","PyTorch","models","."]
docstr: Set all dropout layers into train or eval mode.
  
  :param train: False for evaluation mode.
docstr_tok: ["Set","all","dropout","layers","into","train","or","eval","mode",".",":","param","train",":","False","for","evaluation","mode","."]
code: def set_dropout(self, train: bool) -> None:
      """
      Set all dropout layers into train or eval mode.
  
      :param train: False for evaluation mode.
      """
      import torch
  
      # pylint: disable=W0212
      self._set_layer(
          train=train, layerinfo=[torch.nn.modules.dropout._DropoutNd]
      )
  
file_path: adversarial-robustness-toolbox/art/estimators/pytorch.py
imports: import logging
  from typing import TYPE_CHECKING, Any, List, Tuple
  import numpy
  from art.estimators.estimator import BaseEstimator, LossGradientsMixin, NeuralNetworkMixin
label_desc: Use image node_id 10 for calling the PyTorchEstimator obj's underlying member method code with example usage: obj.set_dropout(train) without return types