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

Method Validate

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

Source from the content-addressed store, hash-verified

293}
294
295Status HloSharding::Validate(const Shape& shape, int64 num_devices) const {
296 Status status = IsTuple() ? ValidateTuple(shape, num_devices)
297 : ValidateNonTuple(shape, num_devices);
298 if (!status.ok()) {
299 tensorflow::errors::AppendToMessage(
300 &status, StrCat("Note: While validating sharding ", ToString(),
301 " against shape ", ShapeUtil::HumanString(shape)));
302 }
303 return status;
304}
305
306Status HloSharding::ValidateNonTuple(const Shape& shape,
307 int64 num_devices) const {

Callers 1

TEST_FFunction · 0.45

Calls 4

AppendToMessageFunction · 0.85
ToStringFunction · 0.70
StrCatFunction · 0.50
okMethod · 0.45

Tested by 1

TEST_FFunction · 0.36