File tree Expand file tree Collapse file tree 3 files changed +4
-20
lines changed
hlo/translate/mhlo_to_hlo Expand file tree Collapse file tree 3 files changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -285,11 +285,10 @@ class PerDeviceCollector {
285285 occ_stats.occupancy_pct );
286286 xevent.AddStatValue (*plane->GetOrCreateStatMetadata (
287287 GetStatTypeStr (StatType::kOccupancyMinGridSize )),
288- static_cast <tsl::int32>(occ_stats.min_grid_size ));
289- xevent.AddStatValue (
290- *plane->GetOrCreateStatMetadata (
291- GetStatTypeStr (StatType::kOccupancySuggestedBlockSize )),
292- static_cast <tsl::int32>(occ_stats.suggested_block_size ));
288+ static_cast <int32_t >(occ_stats.min_grid_size ));
289+ xevent.AddStatValue (*plane->GetOrCreateStatMetadata (GetStatTypeStr (
290+ StatType::kOccupancySuggestedBlockSize )),
291+ static_cast <int32_t >(occ_stats.suggested_block_size ));
293292 xevent.AddStatValue (*plane->GetOrCreateStatMetadata (
294293 GetStatTypeStr (StatType::kKernelDetails )),
295294 *plane->GetOrCreateStatMetadata (ToXStat (
Original file line number Diff line number Diff line change @@ -121,13 +121,6 @@ limitations under the License.
121121#define DEBUG_TYPE " xla-translate"
122122
123123using ::int64_t ;
124- using ::tsl::int16;
125- using ::tsl::int32;
126- using ::tsl::int8;
127- using ::tsl::uint16;
128- using ::tsl::uint32;
129- using ::tsl::uint64;
130- using ::tsl::uint8;
131124
132125// All Module level and Function level attributes must be included in:
133126// xla/mlir_hlo/utils/unregistered_attributes.h
Original file line number Diff line number Diff line change @@ -30,14 +30,6 @@ namespace tsl {
3030
3131// Alias tsl::string to std::string.
3232using string ABSL_DEPRECATE_AND_INLINE () = std::string;
33- using uint8 ABSL_DEPRECATE_AND_INLINE () = uint8_t;
34- using uint16 ABSL_DEPRECATE_AND_INLINE () = uint16_t;
35- using uint32 ABSL_DEPRECATE_AND_INLINE () = uint32_t;
36- using uint64 ABSL_DEPRECATE_AND_INLINE () = uint64_t;
37- using int8 ABSL_DEPRECATE_AND_INLINE () = int8_t;
38- using int16 ABSL_DEPRECATE_AND_INLINE () = int16_t;
39- using int32 ABSL_DEPRECATE_AND_INLINE () = int32_t;
40- using int64 ABSL_DEPRECATE_AND_INLINE () = int64_t;
4133
4234// Note: This duplication is necessary because the inliner doesn't handle
4335// macros very well and templates will cause it to replace int32_t with int.
You can’t perform that action at this time.
0 commit comments