Searched refs:bound_x (Results 1 – 1 of 1) sorted by relevance
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/ |
D | tpu_rewrite_device_util.cc | 228 bool DeviceCoordinateOutOfBound(int x, int y, int z, int core, int bound_x, in DeviceCoordinateOutOfBound() argument 230 return x < 0 || x >= bound_x || y < 0 || y >= bound_y || z < 0 || in DeviceCoordinateOutOfBound() 236 int z, int core, int bound_x, int bound_y, in DeviceCoordinateErrorMsg() argument 240 "' is outside of mesh shape (", bound_x, ", ", in DeviceCoordinateErrorMsg() 305 const int bound_x = topology_proto.mesh_shape(0); in ParseTopologyAttr() local 310 xla::Array4D<TaskAndDevice> topology(bound_x, bound_y, bound_z, bound_core); in ParseTopologyAttr() 318 if (DeviceCoordinateOutOfBound(x, y, z, core, bound_x, bound_y, bound_z, in ParseTopologyAttr() 320 return DeviceCoordinateErrorMsg(kTopologyAttr, x, y, z, core, bound_x, in ParseTopologyAttr() 367 const int bound_x = topology.n1(); in GetGeneralTPUExecutionDeviceAssignment() local 375 return (x + bound_x * (y + bound_y * z)) * bound_core + core; in GetGeneralTPUExecutionDeviceAssignment() [all …]
|