MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / ceil_div

Function ceil_div

tensorrt_llm/math_utils.py:15–16  ·  view source on GitHub ↗
(x: int, y: int)

Source from the content-addressed store, hash-verified

13# See the License for the specific language governing permissions and
14# limitations under the License.
15def ceil_div(x: int, y: int) -> int:
16 return (x + y - 1) // y
17
18
19def pad_up(x: int, y: int) -> int:

Callers 12

swizzle_sf_refFunction · 0.90
unswizzle_sf_refFunction · 0.90
reswizzle_sf_refFunction · 0.90
test_swizzle_sfFunction · 0.90
test_unswizzle_sfFunction · 0.90
test_swizzle_round_tripFunction · 0.90
test_reswizzle_sfFunction · 0.90
swizzle_sfFunction · 0.90
unswizzle_sfFunction · 0.90
reswizzle_sfFunction · 0.90
_Function · 0.90
forwardMethod · 0.90

Calls

no outgoing calls

Tested by 7

swizzle_sf_refFunction · 0.72
unswizzle_sf_refFunction · 0.72
reswizzle_sf_refFunction · 0.72
test_swizzle_sfFunction · 0.72
test_unswizzle_sfFunction · 0.72
test_swizzle_round_tripFunction · 0.72
test_reswizzle_sfFunction · 0.72