forked from graphcore-research/gfloat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
21 lines (19 loc) · 697 Bytes
/
__init__.py
File metadata and controls
21 lines (19 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (c) 2024 Graphcore Ltd. All rights reserved.
from .block import (
BlockFormatInfo,
compute_scale_amax,
decode_block,
encode_block,
quantize_block,
)
from .decode import decode_float
from .printing import float_pow2str, float_tilde_unless_roundtrip_str
from .round import round_float
from .encode import encode_float
from .round_ndarray import round_ndarray
from .encode_ndarray import encode_ndarray
from .decode_ndarray import decode_ndarray
from .types import FloatClass, FloatValue, FormatInfo, Domain, RoundMode
# Don't automatically import from .formats.
# If the user wants them in their namespace, they can explicitly import
# from gfloat.formats import *