MCPcopy Create free account
hub / github.com/VincentHancoder/SSGD / quantize_float

Method quantize_float

mmdet/models/backbones/regnet.py:285–295  ·  view source on GitHub ↗

Converts a float to closest non-zero int divisible by divisor. Args: number (int): Original number to be quantized. divisor (int): Divisor used to quantize the number. Returns: int: quantized number that is divisible by devisor.

(number, divisor)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

adjust_width_groupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected