package tensorboard

  1. Overview
  2. Docs
No synopsis

Install

Dune Dependency

Authors

Maintainers

Sources

0.0.1.tar.gz
md5=91035b4a9827fdf6e2fb61d0edb1bb2c
sha512=7f09994c0bb844429b795b971ae3bacd927eae4854a4efc36dbf8d6f4ea24e7f05f754f7191747e32b4fef1922589d1db8d2622147a1706efe7e79201329400b

doc/src/tensorboard.protobuf/tensor_shape_pp.ml.html

Source file tensor_shape_pp.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[@@@ocaml.warning "-27-30-39"]

let rec pp_tensor_shape_proto_dim fmt (v:Tensor_shape_types.tensor_shape_proto_dim) = 
  let pp_i fmt () =
    Format.pp_open_vbox fmt 1;
    Pbrt.Pp.pp_record_field "size" Pbrt.Pp.pp_int64 fmt v.Tensor_shape_types.size;
    Pbrt.Pp.pp_record_field "name" Pbrt.Pp.pp_string fmt v.Tensor_shape_types.name;
    Format.pp_close_box fmt ()
  in
  Pbrt.Pp.pp_brk pp_i fmt ()

let rec pp_tensor_shape_proto fmt (v:Tensor_shape_types.tensor_shape_proto) = 
  let pp_i fmt () =
    Format.pp_open_vbox fmt 1;
    Pbrt.Pp.pp_record_field "dim" (Pbrt.Pp.pp_list pp_tensor_shape_proto_dim) fmt v.Tensor_shape_types.dim;
    Pbrt.Pp.pp_record_field "unknown_rank" Pbrt.Pp.pp_bool fmt v.Tensor_shape_types.unknown_rank;
    Format.pp_close_box fmt ()
  in
  Pbrt.Pp.pp_brk pp_i fmt ()
OCaml

Innovation. Community. Security.