MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AssignDevice

Function AssignDevice

tensorflow/compiler/xla/client/sharding_builder.cc:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27OpSharding AssignDevice(int device) {
28 OpSharding result;
29 result.set_type(OpSharding::MAXIMAL);
30 result.add_tile_assignment_dimensions(1);
31 result.add_tile_assignment_devices(device);
32 return result;
33}
34
35OpSharding Tile(const Shape& tile_shape,
36 const TileAssignment& tile_assignment) {

Callers 13

ParseShardingFromDeviceFunction · 0.85
BuildArgumentsMethod · 0.85
InfeedMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
HandleBatchNormGradMethod · 0.85
set_device_shardingMethod · 0.85
TEST_FFunction · 0.85
ApplyShardingFromUsersFunction · 0.85

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
XLA_TEST_FFunction · 0.68