From 9af5ace037bc6fd0dad6f841fbeb79158b794624 Mon Sep 17 00:00:00 2001 From: Nick Fraser Date: Thu, 19 Dec 2024 17:30:01 +0000 Subject: [PATCH] docs (test/float): Improved comment --- tests/brevitas/hyp_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/brevitas/hyp_helper.py b/tests/brevitas/hyp_helper.py index 1a0f8ab9a..7829a8e88 100644 --- a/tests/brevitas/hyp_helper.py +++ b/tests/brevitas/hyp_helper.py @@ -254,7 +254,7 @@ def random_minifloat_format( def random_valid_minifloat( draw, bit_width, exponent_bit_width, mantissa_bit_width, signed, exponent_bias): """" - Generate a valid minifloat value, from the given format. Returns a valid minifloat value + Generate a random floating-point value that can be represented in the specified minifloat format. """ # Sanity-check that the format is valid assert bit_width == exponent_bit_width + mantissa_bit_width + int(signed)