MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / divide

Function divide

fastdeploy/model_executor/layers/utils.py:432–445  ·  view source on GitHub ↗

Calculate the division result of two numbers. Args: numerator (int): The dividend. denominator (int): The divisor. Returns: int: The result of the division, which is the quotient of the dividend divided by the divisor.

(numerator: int, denominator: int)

Source from the content-addressed store, hash-verified

430
431
432def divide(numerator: int, denominator: int):
433 """
434 Calculate the division result of two numbers.
435
436 Args:
437 numerator (int): The dividend.
438 denominator (int): The divisor.
439
440 Returns:
441 int: The result of the division, which is the quotient of the dividend divided by the divisor.
442
443 """
444 ensure_divisibility(numerator, denominator)
445 return numerator // denominator
446
447
448def remove_padding(

Callers 8

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls 1

ensure_divisibilityFunction · 0.85

Tested by

no test coverage detected