package torch
PyTorch bindings for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
0.9b.tar.gz
md5=9da4e3a18e6468215ce07c8dc9ff0398
sha512=73d5ab4b820fe27572e8054a8a0d6029a17ed7936e76b395def7e7ad5971e898d4006fb8aa38065274a297a08f5f40763d91d6e5565118f53947dde24bbc3dbf
doc/torch.vision/Torch_vision/Stb_image_write/index.html
Module Torch_vision.Stb_image_write
Source
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
c
items - each line is made of
w
pixels - image is made of
h
lines
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