Skip to content

tenzr::sharding::ShardingAnalysis

Derived Shardy and GSPMD representations of a NamedSharding.

#include <shardy.h>

Public Functions

Name
std::string FormatReport() const
Render the analysis as a formatted report.

Public Attributes

Name
std::string mesh_decl
Shardy mesh declaration.
std::string shardy_attr
Shardy sharding attribute.
std::string gspmd_attr
std::string shardy_constraint_op
Shardy sharding-constraint operation.
bool is_replicated
Whether the layout is fully replicated.
bool is_unconstrained

Public Functions Documentation

function FormatReport

std::string FormatReport() const

Render the analysis as a formatted report.

Return: Multi-line report text.

Render the analysis as a formatted comparison report.

Public Attributes Documentation

variable mesh_decl

std::string mesh_decl;

Shardy mesh declaration.

variable shardy_attr

std::string shardy_attr;

Shardy sharding attribute.

variable gspmd_attr

std::string gspmd_attr;

variable shardy_constraint_op

std::string shardy_constraint_op;

Shardy sharding-constraint operation.

variable is_replicated

bool is_replicated {false};

Whether the layout is fully replicated.

variable is_unconstrained

bool is_unconstrained {false};