Skip to content

Commit

Permalink
[OpenXLA|TSL] Replace ::tsl::gtl::InlinedVector with ::absl::InlinedV…
Browse files Browse the repository at this point in the history
…ector convolution_helper.h (#6656)
  • Loading branch information
ManfeiBai authored Mar 7, 2024
1 parent b6b9c6d commit d209062
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion torch_xla/csrc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ ptxla_cc_library(
"@xla//xla/client/lib:svd",
"@xla//xla/stream_executor:dnn",
"@tsl//tsl/platform:errors",
"@tsl//tsl/lib/gtl:inlined_vector",
"@tsl//tsl/profiler/lib:traceme",
"@tsl//tsl/profiler/lib:traceme_encode",
"@tsl//tsl/platform:tensor_float_32_utils",
Expand Down
4 changes: 2 additions & 2 deletions torch_xla/csrc/convolution_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <string>
#include <string_view>

#include "tsl/lib/gtl/inlined_vector.h"
#include "absl/container/inlined_vector.h"
#include "xla/client/xla_builder.h"
#include "xla/xla_data.pb.h"

Expand Down Expand Up @@ -97,7 +97,7 @@ struct ConvBackpropSpatialDimension {
// Computed dimensions for a backwards convolution.
struct ConvBackpropDimensions {
// Information about each spatial dimension.
::tsl::gtl::InlinedVector<ConvBackpropSpatialDimension, 3> spatial_dims;
::absl::InlinedVector<ConvBackpropSpatialDimension, 3> spatial_dims;

// Batch size.
int64_t batch_size;
Expand Down
4 changes: 2 additions & 2 deletions torch_xla/csrc/ir.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#include <utility>
#include <vector>

#include "absl/container/inlined_vector.h"
#include "absl/hash/hash.h"
#include "absl/types/span.h"
#include "torch_xla/csrc/runtime/types.h"
#include "tsl/lib/gtl/inlined_vector.h"
#include "xla/client/xla_builder.h"

namespace torch_xla {
Expand All @@ -29,7 +29,7 @@ static const uint32_t default_hash_seed = (uint32_t)0x5a2d296e9;
class XlaNode;
class LoweringContext;

using XlaOpVector = tsl::gtl::InlinedVector<xla::XlaOp, 1>;
using XlaOpVector = absl::InlinedVector<xla::XlaOp, 1>;

template <typename T>
using OutputMap =
Expand Down

0 comments on commit d209062

Please sign in to comment.