package torch
PyTorch bindings for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
0.15.tar.gz
md5=e0e2cf2688c69d6bb60f837e812db432
sha512=a518928c5be656a85973db2fe2fb8efb73ec4f4f972f0f733cd75ee8c25292d907bc31ca04a3f2dd5bc95800ee15ee19533ca47f9ff43432485c528c8f08ca90
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