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

Method ComputeProgramShape

tensorflow/compiler/xla/service/hlo_computation.cc:819–830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819ProgramShape HloComputation::ComputeProgramShape(bool include_ids) const {
820 ProgramShape program_shape;
821
822 for (auto* param_instruction : param_instructions_) {
823 *program_shape.add_parameters() = param_instruction->shape();
824 *program_shape.add_parameter_names() =
825 PrintName(param_instruction->name(), include_ids);
826 }
827 *program_shape.mutable_result() = root_instruction_->shape();
828
829 return program_shape;
830}
831
832bool HloComputation::Equal(const HloComputation& other,
833 bool is_layout_sensitive) const {

Callers 15

ComputeMethod · 0.45
XlaCompiledProgramShapeFunction · 0.45
HandleReduceMethod · 0.45
HandleMapMethod · 0.45
HandleReduceWindowMethod · 0.45
HandleScatterMethod · 0.45
ToProtoMethod · 0.45
CreateFromProtoMethod · 0.45

Calls 6

PrintNameFunction · 0.85
add_parametersMethod · 0.80
add_parameter_namesMethod · 0.80
mutable_resultMethod · 0.80
nameMethod · 0.65
shapeMethod · 0.45

Tested by 5

XlaCompiledProgramShapeFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
RunDotOutputFusionFunction · 0.36