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

Method SelectAndScatter

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

Source from the content-addressed store, hash-verified

2324}
2325
2326XlaOp XlaBuilder::SelectAndScatter(XlaOp operand, const XlaComputation& select,
2327 absl::Span<const int64> window_dimensions,
2328 absl::Span<const int64> window_strides,
2329 Padding padding, XlaOp source,
2330 XlaOp init_value,
2331 const XlaComputation& scatter) {
2332 return ReportErrorOrReturn([&]() -> StatusOr<XlaOp> {
2333 TF_ASSIGN_OR_RETURN(const Shape* operand_shape, GetShapePtr(operand));
2334 return SelectAndScatterWithGeneralPadding(
2335 operand, select, window_dimensions, window_strides,
2336 MakePadding(AsInt64Slice(operand_shape->dimensions()),
2337 window_dimensions, window_strides, padding),
2338 source, init_value, scatter);
2339 });
2340}
2341
2342XlaOp XlaBuilder::SelectAndScatterWithGeneralPadding(
2343 XlaOp operand, const XlaComputation& select,

Callers 1

SelectAndScatterFunction · 0.45

Calls 4

MakePaddingFunction · 0.85
AsInt64SliceFunction · 0.50
dimensionsMethod · 0.45

Tested by

no test coverage detected