Skip to content

Commit

Permalink
Fix bits to bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
inakleinbottle committed Oct 24, 2023
1 parent 719889b commit 2877586
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ BFloat16Type::BFloat16Type()
: StandardScalarType<bfloat16>(
string("BFloat16"), string("bf16"), sizeof(bfloat16),
alignof(bfloat16),
{ScalarTypeCode::BFloat, sizeof(bfloat16) * CHAR_BIT, 1U},
{ScalarTypeCode::BFloat, sizeof(bfloat16), 1U},
{devices::DeviceType::CPU, 0})
{}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ RationalType::RationalType()
sizeof(rational_scalar_type),
alignof(rational_scalar_type),
{
ScalarTypeCode::OpaqueHandle,
ScalarTypeCode::ArbitraryPrecisionRational,
0, 0,
},
{ devices::DeviceType::CPU, 0 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class RationalPolyScalarType
string("RationalPoly"),
sizeof(rational_poly_scalar),
alignof(rational_poly_scalar),
{ScalarTypeCode::OpaqueHandle, 0, 0},
{ScalarTypeCode::APRationalPolynomial, 0, 0},
{devices::DeviceType::CPU, 0},
}, devices::get_cpu_device())
{}
Expand Down
2 changes: 1 addition & 1 deletion scalars/src/standard_scalar_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class StandardScalarType : public impl_helpers::ScalarTypeHelper<ScalarImpl>
std::move(id),
sizeof(ScalarImpl),
alignof(ScalarImpl),
{ScalarTypeCode::Float, sizeof_bits<ScalarImpl>(), 1U},
{ScalarTypeCode::Float, sizeof(ScalarImpl), 1U},
{devices::DeviceType::CPU, 0}
}, devices::get_cpu_device())
{}
Expand Down

0 comments on commit 2877586

Please sign in to comment.