“access nvidia de docker compose” Réponses codées

access nvidia de docker compose

# Add the following line to docker-compose

services:
  test:
    image: tensorflow/tensorflow:latest-gpu
    command: python -c "import tensorflow as tf;tf.test.gpu_device_name()"
    deploy:
      resources:
        reservations:
          devices:
            - capabilities: [gpu]
Merwanski

access nvidia de docker compose


test_1  | 2021-01-23 11:02:46.500189: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1402] Created TensorFlow device (/device:GPU:0 with 1624 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1050, pci bus id: 0000:01:00.0, compute capability: 6.1)

Sparkling Skimmer

Réponses similaires à “access nvidia de docker compose”

Questions similaires à “access nvidia de docker compose”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code