Skip to content

Commit 359d18b

Browse files
committed
Update convolution_helper.cpp
1 parent aedb5d4 commit 359d18b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: torch_xla/csrc/convolution_helper.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ tsl::Status GetWindowedOutputSizeVerboseV2(
144144

145145
// Check dimension
146146
tsl::Status ConvBackpropExtractAndVerifyDimension(
147-
tsl::StringPiece label, const xla::Shape& input_shape,
147+
absl::string_view label, const xla::Shape& input_shape,
148148
const xla::Shape& filter_shape, const xla::Shape& output_shape,
149149
const absl::Span<const tsl::int32> dilations,
150150
const std::vector<tsl::int32>& strides, Padding padding,
@@ -185,7 +185,7 @@ tsl::Status ConvBackpropExtractAndVerifyDimension(
185185

186186
// Check dimension
187187
tsl::Status ConvBackpropComputeDimensionsV2(
188-
tsl::StringPiece label, int num_spatial_dims, const xla::Shape& input_shape,
188+
absl::string_view label, int num_spatial_dims, const xla::Shape& input_shape,
189189
const xla::Shape& filter_shape, const xla::Shape& out_backprop_shape,
190190
absl::Span<const tsl::int32> dilations,
191191
const std::vector<tsl::int32>& strides, Padding padding,
@@ -293,7 +293,7 @@ xla::XlaOp TransposeFilterForGroupConvolutionBackpropInput(
293293

294294
// Wrapper for ConvGeneralDilated and check dim.
295295
tsl::StatusOr<xla::XlaOp> MakeXlaBackpropInputConvOp(
296-
tsl::StringPiece type_string, const xla::Shape& input_shape,
296+
absl::string_view type_string, const xla::Shape& input_shape,
297297
xla::XlaOp filter, xla::XlaOp out_backprop, const ConvOpAttrs& attrs,
298298
xla::XlaOp* input_sizes) {
299299
TF_RETURN_IF_ERROR(CheckConvAttrs(attrs));
@@ -394,7 +394,7 @@ tsl::StatusOr<xla::XlaOp> MakeXlaBackpropInputConvOp(
394394

395395
// Wrapper for ConvGeneralDilated and check dim.
396396
tsl::StatusOr<xla::XlaOp> MakeXlaBackpropFilterConvOp(
397-
tsl::StringPiece type_string, xla::XlaOp activations,
397+
absl::string_view type_string, xla::XlaOp activations,
398398
const xla::Shape& filter_shape, xla::XlaOp gradients,
399399
const ConvOpAttrs& attrs) {
400400
TF_RETURN_IF_ERROR(CheckConvAttrs(attrs));
@@ -551,4 +551,4 @@ tsl::StatusOr<xla::XlaOp> MakeXlaBackpropFilterConvOp(
551551

552552
// -------------Convolution Helper Function End--------------------------
553553

554-
} // namespace torch_xla
554+
} // namespace torch_xla

0 commit comments

Comments
 (0)