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

Method AssignDevice

tensorflow/compiler/xla/service/hlo_sharding.cc:29–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using absl::StrJoin;
28
29HloSharding HloSharding::AssignDevice(int64 device_id) {
30 return HloSharding(device_id);
31}
32
33HloSharding HloSharding::Tile1D(const Shape& input_shape, int64 num_tiles) {
34 CHECK_EQ(1, input_shape.rank());

Callers

nothing calls this directly

Calls 1

HloShardingClass · 0.85

Tested by

no test coverage detected