@@ -295,83 +295,83 @@ class DataType {
295295 */
296296 static DataType BFloat (int bits, int lanes = 1 ) { return DataType (kDLBfloat , bits, lanes); }
297297 /* !
298- * \brief Construct NV float8 e3m4 datatype.
298+ * \brief Construct float8 e3m4 datatype.
299299 * \param lanes The number of lanes
300300 * \return The constructed data type.
301301 */
302- static DataType NVFloat8E3M4 (int lanes = 1 ) { return DataType (kFloat8_e3m4 , 8 , lanes); }
302+ static DataType Float8E3M4 (int lanes = 1 ) { return DataType (kFloat8_e3m4 , 8 , lanes); }
303303
304304 /* !
305- * \brief Construct NV float8 e4m3 datatype.
305+ * \brief Construct float8 e4m3 datatype.
306306 * \param lanes The number of lanes
307307 * \return The constructed data type.
308308 */
309- static DataType NVFloat8E4M3 (int lanes = 1 ) { return DataType (kFloat8_e4m3 , 8 , lanes); }
309+ static DataType Float8E4M3 (int lanes = 1 ) { return DataType (kFloat8_e4m3 , 8 , lanes); }
310310
311311 /* !
312- * \brief Construct NV float8 e4m3b11fnuz datatype.
312+ * \brief Construct float8 e4m3b11fnuz datatype.
313313 * \param lanes The number of lanes
314314 * \return The constructed data type.
315315 */
316- static DataType NVFloat8E4M3B11FNUZ (int lanes = 1 ) {
316+ static DataType Float8E4M3B11FNUZ (int lanes = 1 ) {
317317 return DataType (kFloat8_e4m3b11fnuz , 8 , lanes);
318318 }
319319
320320 /* !
321- * \brief Construct NV float8 e4m3fn datatype.
321+ * \brief Construct float8 e4m3fn datatype.
322322 * \param lanes The number of lanes
323323 * \return The constructed data type.
324324 */
325- static DataType NVFloat8E4M3FN (int lanes = 1 ) { return DataType (kFloat8_e4m3fn , 8 , lanes); }
325+ static DataType Float8E4M3FN (int lanes = 1 ) { return DataType (kFloat8_e4m3fn , 8 , lanes); }
326326
327327 /* !
328- * \brief Construct NV float8 e4m3fnuz datatype.
328+ * \brief Construct float8 e4m3fnuz datatype.
329329 * \param lanes The number of lanes
330330 * \return The constructed data type.
331331 */
332- static DataType NVFloat8E4M3FNUZ (int lanes = 1 ) { return DataType (kFloat8_e4m3fnuz , 8 , lanes); }
332+ static DataType Float8E4M3FNUZ (int lanes = 1 ) { return DataType (kFloat8_e4m3fnuz , 8 , lanes); }
333333
334334 /* !
335- * \brief Construct NV float8 e5m2 datatype.
335+ * \brief Construct float8 e5m2 datatype.
336336 * \param lanes The number of lanes
337337 * \return The constructed data type.
338338 */
339- static DataType NVFloat8E5M2 (int lanes = 1 ) { return DataType (kFloat8_e5m2 , 8 , lanes); }
339+ static DataType Float8E5M2 (int lanes = 1 ) { return DataType (kFloat8_e5m2 , 8 , lanes); }
340340
341341 /* !
342- * \brief Construct NV float8 e5m2fnuz datatype.
342+ * \brief Construct float8 e5m2fnuz datatype.
343343 * \param lanes The number of lanes
344344 * \return The constructed data type.
345345 */
346- static DataType NVFloat8E5M2FNUZ (int lanes = 1 ) { return DataType (kFloat8_e5m2fnuz , 8 , lanes); }
346+ static DataType Float8E5M2FNUZ (int lanes = 1 ) { return DataType (kFloat8_e5m2fnuz , 8 , lanes); }
347347
348348 /* !
349- * \brief Construct NV float8 e8m0fnu datatype.
349+ * \brief Construct float8 e8m0fnu datatype.
350350 * \param lanes The number of lanes
351351 * \return The constructed data type.
352352 */
353- static DataType NVFloat8E8M0FNU (int lanes = 1 ) { return DataType (kFloat8_e8m0fnu , 8 , lanes); }
353+ static DataType Float8E8M0FNU (int lanes = 1 ) { return DataType (kFloat8_e8m0fnu , 8 , lanes); }
354354
355355 /* !
356- * \brief Construct NV float6 e2m3fn datatype.
356+ * \brief Construct float6 e2m3fn datatype.
357357 * \param lanes The number of lanes
358358 * \return The constructed data type.
359359 */
360- static DataType NVFloat6E2M3FN (int lanes = 1 ) { return DataType (kFloat6_e2m3fn , 6 , lanes); }
360+ static DataType Float6E2M3FN (int lanes = 1 ) { return DataType (kFloat6_e2m3fn , 6 , lanes); }
361361
362362 /* !
363- * \brief Construct NV float6 e3m2fn datatype.
363+ * \brief Construct float6 e3m2fn datatype.
364364 * \param lanes The number of lanes
365365 * \return The constructed data type.
366366 */
367- static DataType NVFloat6E3M2FN (int lanes = 1 ) { return DataType (kFloat6_e3m2fn , 6 , lanes); }
367+ static DataType Float6E3M2FN (int lanes = 1 ) { return DataType (kFloat6_e3m2fn , 6 , lanes); }
368368
369369 /* !
370- * \brief Construct NV float4 e2m1fn datatype.
370+ * \brief Construct float4 e2m1fn datatype.
371371 * \param lanes The number of lanes
372372 * \return The constructed data type.
373373 */
374- static DataType NVFloat4E2M1FN (int lanes = 1 ) { return DataType (kFloat4_e2m1fn , 4 , lanes); }
374+ static DataType Float4E2M1FN (int lanes = 1 ) { return DataType (kFloat4_e2m1fn , 4 , lanes); }
375375 /* !
376376 * \brief Construct a bool type.
377377 * \param lanes The number of lanes.
@@ -418,8 +418,8 @@ inline int GetVectorBytes(DataType dtype) {
418418 int data_bits = dtype.bits () * dtype.lanes ();
419419 // allow bool to exist
420420 if (dtype == DataType::Bool () || dtype == DataType::Int (4 ) || dtype == DataType::UInt (4 ) ||
421- dtype == DataType::Int (1 ) || dtype == DataType::NVFloat4E2M1FN () ||
422- dtype == DataType::NVFloat6E2M3FN () || dtype == DataType::NVFloat6E3M2FN ()) {
421+ dtype == DataType::Int (1 ) || dtype == DataType::Float4E2M1FN () ||
422+ dtype == DataType::Float6E2M3FN () || dtype == DataType::Float6E3M2FN ()) {
423423 return 1 ;
424424 }
425425 ICHECK_EQ (data_bits % 8 , 0U ) << " Need to load/store by multiple of bytes" ;
0 commit comments