- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TFTypeIsBFloat16OrHalfTensor (0.41 sec)
-
tensorflow/compiler/mlir/lite/utils/validators.h
if (!tensorType) return false; return tensorType.getElementType().isF16(); } // Returns true iff the given value is a f16 or bf16 tensor. inline bool TFTypeIsBFloat16OrHalfTensor(Value value) { return TFTypeIsBFloat16Tensor(value) || TFTypeIsHalfTensor(value); } // Returns true iff the given TensorFlow op has a `padding` attribute whose
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dilated_conv.h
if (dilations && !TFIntListIsAllOnes(dilations)) { return rewriter.notifyMatchFailure(op, "dilations should be all 1"); } if (!TFL::TFTypeIsFloat32Tensor(op.getInput()) && !TFL::TFTypeIsBFloat16OrHalfTensor(op.getInput())) { return rewriter.notifyMatchFailure( op, "op's input is not float or half or bfloat16"); } if (!TFL::TFDataFormatIsNHWC(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc
// [1, X, Y, 1] if exists. TFConvOpType tf_op = cast<TFConvOpType>(op); if (!TFTypeIsFloat32Tensor(tf_op.getInput()) && !(allow_bf16_and_f16_type_legalization_ && TFTypeIsBFloat16OrHalfTensor(tf_op.getInput()))) return failure(); if (!TFDataFormatIsNHWC(op)) return failure(); IntegerAttr height, width; if (!TFIntListIs1XY1(op, "strides", &height, &width)) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 64.6K bytes - Viewed (0)