Remove use of int function after math.ceil

Return type of math.ceil is already an int.
This commit is contained in:
j-t-1
2024-12-16 17:08:37 +00:00
committed by GitHub
parent 02b11b44a2
commit b37923c183
+1 -3
View File
@@ -73,9 +73,7 @@ class Intel(linear.LinearlyMappedLayer):
)
# These can vary depending on the type of space
self._index_shift = math.ceil(
math.log2(struct.calcsize(self._entry_format))
)
self._index_shift = math.ceil(math.log2(struct.calcsize(self._entry_format)))
@classproperty
@functools.lru_cache()