package torch
PyTorch bindings for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
0.10.tar.gz
md5=63540fcb4a4aa85a63207b8ed6eee137
sha512=a6f01cc4e4d4835f54766490be9145829032e2b75330b810819058883b93562871bc6d68dbdf9d346e10d7911b9474ceacbd20942246c48689102bcfda1ee32a
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