@@ -115,23 +115,23 @@ pub enum JsTensorType {
115
115
/// Brain 16-bit floating point number, equivalent to [`half::bf16`] (requires the `half` feature).
116
116
Bfloat16 ,
117
117
Complex64 ,
118
- Complex128 ,
119
- /// 8-bit floating point number with 4 exponent bits and 3 mantissa bits, with only NaN values and no infinite
120
- /// values.
121
- Float8E4M3FN ,
122
- /// 8-bit floating point number with 4 exponent bits and 3 mantissa bits, with only NaN values, no infinite
123
- /// values, and no negative zero.
124
- Float8E4M3FNUZ ,
125
- /// 8-bit floating point number with 5 exponent bits and 2 mantissa bits.
126
- Float8E5M2 ,
127
- /// 8-bit floating point number with 5 exponent bits and 2 mantissa bits, with only NaN values, no infinite
128
- /// values, and no negative zero.
129
- Float8E5M2FNUZ ,
130
- /// 4-bit unsigned integer.
131
- Uint4 ,
132
- /// 4-bit signed integer.
133
- Int4 ,
134
- Undefined
118
+ Complex128 ,
119
+ /// 8-bit floating point number with 4 exponent bits and 3 mantissa bits, with only NaN values and no infinite
120
+ /// values.
121
+ Float8E4M3FN ,
122
+ /// 8-bit floating point number with 4 exponent bits and 3 mantissa bits, with only NaN values, no infinite
123
+ /// values, and no negative zero.
124
+ Float8E4M3FNUZ ,
125
+ /// 8-bit floating point number with 5 exponent bits and 2 mantissa bits.
126
+ Float8E5M2 ,
127
+ /// 8-bit floating point number with 5 exponent bits and 2 mantissa bits, with only NaN values, no infinite
128
+ /// values, and no negative zero.
129
+ Float8E5M2FNUZ ,
130
+ /// 4-bit unsigned integer.
131
+ Uint4 ,
132
+ /// 4-bit signed integer.
133
+ Int4 ,
134
+ Undefined ,
135
135
}
136
136
137
137
#[ derive( Serialize , Deserialize ) ]
@@ -282,7 +282,7 @@ impl ToJsTensor {
282
282
TensorElementType :: String => todo ! ( ) ,
283
283
TensorElementType :: Float16 => todo ! ( ) ,
284
284
TensorElementType :: Bfloat16 => todo ! ( ) ,
285
- _ => todo ! ( )
285
+ _ => todo ! ( ) ,
286
286
} ;
287
287
288
288
Ok ( Self {
0 commit comments