- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getIntOrFloatBitWidth (0.62 sec)
-
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
builder.getContext(), tensor.sparsity->traversal_order, tensor.sparsity->block_map, dim_metadata); std::vector<char> dense_buffer( value_type.getElementType().getIntOrFloatBitWidth() / CHAR_BIT); mlir::TypedAttr dummy_value = mlir::DenseIntOrFPElementsAttr::getFromRawBuffer(value_type, dense_buffer);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc
ShapedType ConvertIntToQint(ShapedType input_type, MLIRContext* ctx) { int bit_width; bool is_signed; Type ele_type = input_type.getElementType(); if (ele_type.isIntOrFloat()) { bit_width = ele_type.getIntOrFloatBitWidth(); is_signed = ele_type.isSignlessIntOrFloat() || ele_type.isSignedInteger(); } else if (QuantizedType qtype = mlir::dyn_cast<QuantizedType>(ele_type)) { bit_width = qtype.getStorageTypeIntegralWidth();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 54.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
Type type = x_type.clone(builder->getI32Type()); return builder->create<CastOp>(loc, type, x, truncate); } static APFloat ConvertToAPFloat(double val, Type type) { if (type.getIntOrFloatBitWidth() == 32) { return APFloat(static_cast<float>(val)); } return APFloat(val); } // Performs the operation of `Shape(input)[idx]`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0)