title: How to specify 3GB using bit shift in python?
body: <p>I am allocating memory in the Jetson TX2. It has 8GB of RAM.
  I need to specify the maximun GPU memory size available for TensorRT.</p>
  
  <blockquote>
    <p>max_workspace_size_bytes = (has to be an integer)</p>
  </blockquote>
  
  <p>I have seen some examples using these "values":</p>
  
  <pre><code>1&lt;&lt;20 = 1048576 (decimal)
        = 0001 0000 0000 0000 0000
  
  1&lt;&lt;30 = 1073741824
        = 0001 0000 0000 0000 0000 0000 0000
  </code></pre>
  
  <p>But if I have 8GB of RAM, how can "1048576" or "1073741824" represent a part of RAM? </p>
  
  <p>I have used this to allocate 3GB:</p>
  
  <pre><code>3*(10**9)
  </code></pre>
  
  <p>But I would like to understand the other way of representing a number.</p>