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

Function MakeSliceHlo

tensorflow/compiler/xla/service/hlo_creation_utils.cc:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80StatusOr<HloInstruction*> MakeSliceHlo(HloInstruction* operand,
81 absl::Span<const int64> start_indices,
82 absl::Span<const int64> limit_indices,
83 absl::Span<const int64> strides) {
84 HloComputation* computation = operand->parent();
85 TF_ASSIGN_OR_RETURN(Shape slice_shape, ShapeInference::InferSliceShape(
86 operand->shape(), start_indices,
87 limit_indices, strides));
88 return computation->AddInstruction(HloInstruction::CreateSlice(
89 slice_shape, operand, start_indices, limit_indices, strides));
90}
91
92StatusOr<HloInstruction*> MakeConvolveHlo(
93 HloInstruction* lhs, HloInstruction* rhs, int64 feature_group_count,

Callers 6

HandlePadMethod · 0.85
HandleSliceMethod · 0.85

Calls 2

parentMethod · 0.45
AddInstructionMethod · 0.45

Tested by

no test coverage detected