title: What does major, minor, revison, transpose means in loading weights in tensorflow?
body: <p>Loading weights of YOLOv3 <a href="https://machinelearningmastery.com/how-to-perform-object-detection-with-yolov3-in-keras/" rel="nofollow noreferrer">Object-detection-with-yolov3-in-keras</a> </p>
  
  <p>Can somebody please tell me what is happening here in loading weights and the meaning of transpose statement</p>
  
  <pre><code>with open(weight_file, 'rb') as w_f:
          major,  = struct.unpack('i', w_f.read(4))
          minor,  = struct.unpack('i', w_f.read(4))
          revision, = struct.unpack('i', w_f.read(4))
          if (major*10 + minor) &gt;= 2 and major &lt; 1000 and minor &lt; 1000:
              w_f.read(8)
          else:
              w_f.read(4)
          transpose = (major &gt; 1000) or (minor &gt; 1000)
          binary = w_f.read() 
  </code></pre>