Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ ceil_of_ratio
Function
ceil_of_ratio
tensorflow/python/tpu/device_assignment.py:310–311 ·
view source on GitHub ↗
(n, m)
Source
from the content-addressed store, hash-verified
308
mesh_shape))
309
310
def
ceil_of_ratio(n, m):
311
return
(n + m - 1) // m
312
313
replica_shape = [0] * topology_rank
314
if
num_replicas > 0:
Callers
2
device_assignment
Function · 0.85
EmitTile
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected