# What is gpu\_0/data?

**URL:** <https://discuss.pytorch.org/t/what-is-gpu-0-data/48902>\
**Category:** glow\
**Created:** [June 25, 2019, 10:11am UTC](https://discuss.pytorch.org/t/what-is-gpu-0-data/48902 "2019-06-25T10:11:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marat](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/marat/32/13207_2.png) [@Marat](https://discuss.pytorch.org/u/Marat)\
**Post date:** [June 25, 2019, 10:11am UTC](https://discuss.pytorch.org/t/what-is-gpu-0-data/48902/1 "2019-06-25T10:11:27Z")

</div>

I build GLOW and now want to test in GPU mode. Recently I work with image-classifier tool but I failed to understand what is

```auto
-model-input-name=gpu_0/data

```

???  
I pass ONNX model file and PNG picture what role model-input-name plays?

Fill line is

```auto
./bin/image-classifier tests/images/imagenet/*.png -image-mode=0to1 -m=resnet50 -model-input-name=gpu_0/data?

```

---

<div class="post-metadata">

**Author:** ![Marat](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/marat/32/13207_2.png) [@Marat](https://discuss.pytorch.org/u/Marat)\
**Post date:** [June 25, 2019, 10:41am UTC](https://discuss.pytorch.org/t/what-is-gpu-0-data/48902/2 "2019-06-25T10:41:09Z")

</div>

I found fix using lldb debugger if I pass

```auto
-model-input-name=gpu_0/data_0

```

instead it works in my case.

---

<div class="post-metadata">

**Author:** ![Marat](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/marat/32/13207_2.png) [@Marat](https://discuss.pytorch.org/u/Marat)\
**Post date:** [June 25, 2019, 11:55am UTC](https://discuss.pytorch.org/t/what-is-gpu-0-data/48902/3 "2019-06-25T11:55:33Z")

</div>

How to specify appropriate -model-input-name when using -input-image-list-file option of image-classifier tool?

If use gpu\_0/data\_0 I will get

```auto
Reshape
name : OC2_DUMMY_0
Input : float<9 x 2048 x 1 x 1>
Dims : [1, 2048]
users : 1
Result : float<1 x 2048>

Reshape into a different size
For comparison `LHS Equal RHS` with:
LHS: 2048
RHS: 18432
Encountered an error, exiting.
location: ../lib/Importer/ONNXModelLoader.cpp:1265 message: Function verification failed.

```

Which is not good

---

<div class="post-metadata">

**Author:** ![jfix](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/jfix/32/21510_2.png) [@jfix](https://discuss.pytorch.org/u/jfix)\
**Post date:** [June 25, 2019, 9:30pm UTC](https://discuss.pytorch.org/t/what-is-gpu-0-data/48902/4 "2019-06-25T21:30:33Z")

</div>

Please see [this comment here and the couple after it](https://discuss.pytorch.org/t/quantization-example-resnet50/39568/13) about the model input name. It has nothing to do with the input image list – it’s the name of the input in the protobuf representing the model itself.

---

<div class="post-metadata">

**Author:** ![bucky](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/bucky/32/33323_2.png) [@bucky](https://discuss.pytorch.org/u/bucky)\
**Post date:** [March 3, 2021, 2:50pm UTC](https://discuss.pytorch.org/t/what-is-gpu-0-data/48902/5 "2021-03-03T14:50:46Z")

</div>

Hello, How do I run glow on a GPU?

./bin.mnsit -backend=OpenCL doesnt seems to work. I have a nvidia gpu in my computer.

---

<div class="post-metadata">

**Author:** ![jfix](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/jfix/32/21510_2.png) [@jfix](https://discuss.pytorch.org/u/jfix)\
**Post date:** [March 4, 2021, 6:25pm UTC](https://discuss.pytorch.org/t/what-is-gpu-0-data/48902/6 "2021-03-04T18:25:55Z")

</div>

When you say it doesn’t work, does that mean it executes but doesn’t appear to execute on the GPU, or it doesn’t execute at all?

If it’s the former, OpenCL allows you to target many different devices on your machine. You may need to specify which device you want to target via `--device=[integer>=0]`, e.g. `--device=1`.
