Home
last modified time | relevance | path

Searched refs:isBF16 (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dvalidators.h79 return tensorType.getElementType().isBF16(); in TFTypeIsBFloat16Tensor()
Dconstant_utils.cc38 } else if (element_type.isBF16()) { in CreateConstOpWithSingleValue()
/external/llvm-project/mlir/lib/IR/
DTypes.cpp25 bool Type::isBF16() const { return isa<BFloat16Type>(); } in isBF16() function in Type
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/utils/
Dconvert_op_folder.cc30 size_t bit_width = new_type.isBF16() ? 64 : new_type.getIntOrFloatBitWidth(); in ConvertElementsAttr()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dfused_kernel_matcher.cc225 if (!matmul.T().isF32() && !matmul.T().isBF16()) { in AreFuseCompatible()
Dlower_tf.cc1218 assert(element_type.isBF16()); in matchAndRewrite()
/external/llvm-project/mlir/include/mlir/Dialect/Quant/
DQuantTypes.h180 using Type::isBF16;
/external/llvm-project/mlir/include/mlir/IR/
DTypes.h117 bool isBF16() const;
DOpBase.td459 def BF16 : Type<CPred<"$_self.isBF16()">, "bfloat16 type">,
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dconvert_type.cc103 } else if (type.isBF16()) { in ConvertScalarTypeToDataType()
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dtype_to_shape.cc46 if (type.isBF16()) { in TypeToPrimitiveType()
Dhlo_utils.cc168 if (element_type.isBF16()) { in CopyDenseElementsDataToXlaFormat()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dwhile_loop_outline.cc79 if (elemType.isBF16() || elemType.isF32()) return true; in IsCompatibleTypeWithTFLCastOp()
Doptimize.cc864 return element_type.isBF16() || element_type.isF32(); in CanFuseAffineOp()
/external/llvm-project/mlir/lib/CAPI/IR/
DBuiltinTypes.cpp70 bool mlirTypeIsABF16(MlirType type) { return unwrap(type).isBF16(); } in mlirTypeIsABF16()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_types.cc112 } else if (type.isBF16()) { in get()
/external/llvm-project/mlir/test/lib/Dialect/Test/
DTestPatterns.cpp793 if (type.isBF16() || type.isF16() || type.isF32()) in runOnOperation()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVDialect.cpp174 if (type.isBF16()) { in parseAndVerifyType()
DSPIRVTypes.cpp568 bool ScalarType::isValid(FloatType type) { return !type.isBF16(); } in isValid()
/external/tensorflow/tensorflow/compiler/mlir/lite/ir/
Dtfl_ops.cc335 return shaped_type.getElementType().isBF16(); in IsBF16ShapedType()
1137 if (getType().cast<ShapedType>().getElementType().isBF16()) { in fold()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf.cc186 if (input_type.isBF16() || input_type.isF16()) return FloatType::getF32(ctx); in GetSumAccumulationType()
900 return (ty.isF16() || ty.isBF16()) ? FloatType::getF32(ty.getContext()) : ty; in GetAccumulationType()
914 } else if (element_ty.isBF16()) { in GetEpsilonValue()
1312 if (!element_type.isBF16()) return failure(); in matchAndRewrite()