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

Method Dot

tensorflow/compiler/xla/client/xla_builder.cc:1117–1128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115}
1116
1117XlaOp XlaBuilder::Dot(XlaOp lhs, XlaOp rhs,
1118 const PrecisionConfig* precision_config) {
1119 return ReportErrorOrReturn([&]() -> StatusOr<XlaOp> {
1120 TF_ASSIGN_OR_RETURN(const Shape* lhs_shape, GetShapePtr(lhs));
1121
1122 DotDimensionNumbers dimension_numbers;
1123 dimension_numbers.add_lhs_contracting_dimensions(
1124 lhs_shape->dimensions_size() == 1 ? 0 : 1);
1125 dimension_numbers.add_rhs_contracting_dimensions(0);
1126 return DotGeneral(lhs, rhs, dimension_numbers, precision_config);
1127 });
1128}
1129
1130XlaOp XlaBuilder::DotGeneral(XlaOp lhs, XlaOp rhs,
1131 const DotDimensionNumbers& dimension_numbers,

Callers 10

check_pydotFunction · 0.80
model_to_dotFunction · 0.80
test_merge_dotMethod · 0.80
test_dot_errorsMethod · 0.80
get_modelMethod · 0.80
DotFunction · 0.80

Calls 2

DotGeneralFunction · 0.85
dimensions_sizeMethod · 0.80

Tested by 7

test_merge_dotMethod · 0.64
test_dot_errorsMethod · 0.64
get_modelMethod · 0.64