title: Using pytorch cuda in AWS sagemaker notebook instance
body: <p>In colab, whenever we need GPU, we simply click <code>change runtime type</code> and change hardware accelarator to <code>GPU</code></p>
  <p>and cuda becomes available, <code>torch.cuda.is_available()</code> is <code>True</code></p>
  <p>How to do this is AWS sagemaker, i.e. turning on cuda.
  I am new to AWS and trying to train model using pytorch in aws sagemaker, where Pytorch code is first tested in colab environment.</p>
  <p>my sagemaker notebook insatnce is <code>ml.t2.medium</code></p>