File tree 3 files changed +24
-0
lines changed 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ cc_library(
36
36
"hlo_evaluator_typed_visitor_int4.cc" ,
37
37
"hlo_evaluator_typed_visitor_int64.cc" ,
38
38
"hlo_evaluator_typed_visitor_int8.cc" ,
39
+ "hlo_evaluator_typed_visitor_mxfloat.cc" ,
39
40
"hlo_evaluator_typed_visitor_uint16.cc" ,
40
41
"hlo_evaluator_typed_visitor_uint32.cc" ,
41
42
"hlo_evaluator_typed_visitor_uint64.cc" ,
Original file line number Diff line number Diff line change @@ -1734,6 +1734,7 @@ extern template class HloEvaluatorTypedVisitor<double>;
1734
1734
extern template class HloEvaluatorTypedVisitor <complex64>;
1735
1735
extern template class HloEvaluatorTypedVisitor <complex128>;
1736
1736
extern template class HloEvaluatorTypedVisitor <bfloat16, float >;
1737
+ extern template class HloEvaluatorTypedVisitor <tsl::float4_e2m1fn, float >;
1737
1738
extern template class HloEvaluatorTypedVisitor <tsl::float8_e5m2, float >;
1738
1739
extern template class HloEvaluatorTypedVisitor <tsl::float8_e4m3, float >;
1739
1740
extern template class HloEvaluatorTypedVisitor <tsl::float8_e4m3fn, float >;
Original file line number Diff line number Diff line change
1
+ /* Copyright 2024 The OpenXLA Authors.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+ ==============================================================================*/
15
+
16
+ #include " xla/hlo/evaluator/hlo_evaluator.h"
17
+ #include " xla/hlo/evaluator/hlo_evaluator_typed_visitor.h"
18
+ #include " tsl/platform/ml_dtypes.h"
19
+
20
+ namespace xla {
21
+ template class HloEvaluatorTypedVisitor <tsl::float4_e2m1fn, float >;
22
+ } // namespace xla
You can’t perform that action at this time.
0 commit comments