Ax: Crash after setting PyTorch default tensor type to cuda.FloatTensor

Created on 19 Jan 2020  路  5Comments  路  Source: facebook/Ax

Hello folks at Facebook,
setting PyTorch default tensor type to cuda.FloatTensor leads Ax to crashing in a Colab GPU instance.

You can checkout a complete test setup in Colab. This is the culprit:
torch.set_default_tensor_type(torch.cuda.FloatTensor)

Keep up the great work,
Enrico Bonetti Vieno

bug upstream issue

Most helpful comment

All 5 comments

@ebonetti thanks for bringing this to our attention. I can confirm that GPUs should be fully suppported, so we're investigating this bug now.

This appears to be an issue with pytorch:

import torch
from torch.quasirandom import SobolEngine

torch.set_default_tensor_type(torch.cuda.FloatTensor)
se = SobolEngine(3)  # crashes here

We'll have to fix this upstream.

I landed the fix upstream in pytorch. In order for this to work you'll have to use the pytorch nightlies (starting tomorrow)

Thank you for the fast resolution, great job! 馃挭

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Pzmijewski picture Pzmijewski  路  3Comments

richarddwang picture richarddwang  路  4Comments

Pzmijewski picture Pzmijewski  路  3Comments

natolambert picture natolambert  路  4Comments

FelixNeutatz picture FelixNeutatz  路  4Comments