package torch
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
On This Page
  
  
  PyTorch bindings for OCaml
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
  
    
      0.4.tar.gz
    
    
        
    
  
  
  
    
  
  
    
  
        md5=9547e9e025dacd52e405ff699539c582
    
    
  sha512=23fd9bef6f5f11c55171f2383a2f7ca57330511af6521a4579410e002d8667a91e764aecc2deb1cf8d7bf3b0e988cd3020850fa4a5a1ec713dfb110ec7352892
    
    
  doc/torch.vision/Torch_vision/Stb_image_write/index.html
Module Torch_vision.Stb_image_writeSource
Image writing
buffer simply is an alias to a bigarray with c_layout. Two kind of pixel buffers are manipulated:
- int8 for images with 8-bit channels
- float32 for images with floating point channels
Content of an image with c channels of width w and height h is represented as a contiguous sequence of items such that:
- channels are interleaved
- each pixel is made of citems
- each line is made of wpixels
- image is made of hlines
Source
type 'kind buffer = ('a, 'b, Bigarray.c_layout) Bigarray.Array1.t constraint 'kind = ('a, 'b) Bigarray.kind sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
  On This Page