src/transformers/benchmark/benchmark_args_tf.py/TensorFlowBenchmarkArguments/n_gpu
class TensorFlowBenchmarkArguments:    def n_gpu(self) -> int:
        requires_backends(self, ["tf"])
        if self.cuda:
            return len(self.gpu_list)
        return 0