package torch

  1. Overview
  2. Docs
PyTorch bindings for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

0.12.tar.gz
md5=ed7f1c706ae1d8f70c0db4c6cde1d391
sha512=cc09079eb8b1c876f7416b6446c9f5439b7fb54e82d8cbad778ef8bd59d62dc2681e84f54fc69c974a0ed67d3a435e6108b4303cc1c424b8dc89fdfa5992d9d7

doc/src/torch.vision/stb_image_write.ml.html

Source file stb_image_write.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
open Bigarray

type 'kind buffer = ('a, 'b, c_layout) Array1.t constraint 'kind = ('a, 'b) kind
type float32 = (float, float32_elt) kind
type int8 = (int, int8_unsigned_elt) kind

external png
  :  string
  -> w:int
  -> h:int
  -> c:int
  -> int8 buffer
  -> unit
  = "ml_stbi_write_png"

external bmp
  :  string
  -> w:int
  -> h:int
  -> c:int
  -> int8 buffer
  -> unit
  = "ml_stbi_write_bmp"

external tga
  :  string
  -> w:int
  -> h:int
  -> c:int
  -> int8 buffer
  -> unit
  = "ml_stbi_write_tga"

external hdr
  :  string
  -> w:int
  -> h:int
  -> c:int
  -> float32 buffer
  -> unit
  = "ml_stbi_write_hdr"

external jpg
  :  string
  -> w:int
  -> h:int
  -> c:int
  -> quality:int
  -> int8 buffer
  -> unit
  = "ml_stbi_write_jpg_bytecode" "ml_stbi_write_jpg_native"
OCaml

Innovation. Community. Security.