Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 609299028
  • Loading branch information
tensorflower-gardener committed Feb 22, 2024
1 parent d621b59 commit c2fa7e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion third_party/xla/xla/primitive_util.cc
Expand Up @@ -178,7 +178,7 @@ GetPrimitiveTypeStringMap() {

} // namespace

StatusOr<PrimitiveType> StringToPrimitiveType(absl::string_view name) {
absl::StatusOr<PrimitiveType> StringToPrimitiveType(absl::string_view name) {
const auto& map = GetPrimitiveTypeStringMap();
auto found = map.find(name);
if (found == map.end()) {
Expand Down
2 changes: 1 addition & 1 deletion third_party/xla/xla/primitive_util.h
Expand Up @@ -708,7 +708,7 @@ const std::string& LowercasePrimitiveTypeName(PrimitiveType s);

// Returns the PrimitiveType matching the given name. The given name is expected
// to be lower-case.
StatusOr<PrimitiveType> StringToPrimitiveType(absl::string_view name);
absl::StatusOr<PrimitiveType> StringToPrimitiveType(absl::string_view name);

// Returns true if the given name is a primitive type string (lower-case).
bool IsPrimitiveTypeName(absl::string_view name);
Expand Down

0 comments on commit c2fa7e6

Please sign in to comment.