- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 130 for resultType (0.19 sec)
-
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc
return false; } Type lhs_type = op->getOperand(0).getType(); Type rhs_type = op->getOperand(1).getType(); Type result_type = op->getResult(0).getType(); return !IsQuantizedTensorType(lhs_type) && IsQuantizedTensorType(rhs_type) && !IsQuantizedTensorType(result_type); } absl::StatusOr<bool> IsDotGeneralFullyConnected(DotGeneralOp dot_general_op) { if (dot_general_op == nullptr)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
.getOutput(); // Recreate an op with the above BroadcastTo op results. RankedTensorType result_type = RankedTensorType::get( symbolic_broadcast_shape, getElementTypeOrSelf(out.getType())); rewriter.replaceOpWithNewOp<SourceOp>(op, result_type, broadcasted_lhs, broadcasted_rhs); return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h
Value result = enumerated_result.value(); Type result_type = result.getType(); // Add this to the test coverage once we create test ops with none type // results. if (mlir::isa<NoneType>(result_type)) { outputs_replaced.insert({result, enumerated_result.index()}); output_types.push_back(result_type); continue; } Type result_ele_type =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc
Type result_type; // Include info about the activation function if applicable. if (fuse_activation) { locations.push_back(activation->getLoc()); fused_ops.push_back( StringAttr::get(context, activation->getName().stripDialect())); result_type = activation->getResultTypes().front(); } else { result_type = bias_add.getResult().getType(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/fuse_convolution_pass.cc
.getDefiningOp<mhlo::ConstantOp>(); if (multiplier == nullptr) { return failure(); } auto result_type = OpTrait::util::getBroadcastedType(filter.getType(), multiplier.getType()); if (!result_type) { return rewriter.notifyMatchFailure(mul_op, [&](::mlir::Diagnostic &diag) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 22:21:19 UTC 2024 - 8.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc
Value result = enumerated_result.value(); Type result_type = result.getType(); if (result_type.isa<NoneType>()) { outputs_replaced.insert({result, enumerated_result.index()}); output_types.push_back(result_type); continue; } auto result_tensor_type = result_type.cast<TensorType>(); // If the user is the Quantize op, it must be the only user.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 23.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
Type operand_type = std::get<0>(entry).getType(); Value result = std::get<1>(entry); TensorType result_type = mlir::cast<TensorType>(result.getType()); Type inferred_type = TypeMeet(result_type, operand_type); if (result_type == inferred_type) continue; if (!UpdateTypeAndInsertIncompatibleUseCasts(inferred_type, result)) continue; changed = true; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc
// a TF op with result type tensor<*xf32> will have a bounded type after // fallback legalization. auto cast_value = [&](OpBuilder& builder, Type result_type, ValueRange inputs, Location loc) -> Value { return builder.create<mlir::tensor::CastOp>(loc, result_type, inputs.front()); }; addSourceMaterialization(cast_value); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
if (x_type != result_type) { x = builder.create<BroadcastInDimOp>(loc, result_type, x, broadcast_dims); } if (y_type != result_type) { y = builder.create<BroadcastInDimOp>(loc, result_type, y, larger_broadcast_dims); } } else { if (x_type != result_type) { x = builder.create<BroadcastInDimOp>(loc, result_type, x,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
mlir::cast<TypeAttr>(cast_op.getInputElementType()).getValue(); if (result_elt_type != original_input_type) { UnrankedTensorType result_type = UnrankedTensorType::get(result_elt_type); return rewriter.create<TF::CastOp>(loc, result_type, cast_op.getArg()); } return cast_op.getArg(); } // For variadic operands, we have to enforce them to use the same types.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.8K bytes - Viewed (0)