- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 675 for ucast (0.43 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/tests/prepare_lifting.mlir
%0 = "quantfork.qcast"(%cst_1) : (tensor<2x3x3x2xf32>) -> tensor<2x3x3x2x!quant.uniform<i8<-127:127>:f32:3, {0.003937007874015748,0.003937007874015748}>> %1 = "quantfork.dcast"(%0) : (tensor<2x3x3x2x!quant.uniform<i8<-127:127>:f32:3, {0.003937007874015748,0.003937007874015748}>>) -> tensor<2x3x3x2xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 14 03:24:59 UTC 2024 - 33.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h
// TODO(b/204265523): Removes this pass after the exporting MLIR to SavedModel // path is available. std::unique_ptr<OperationPass<ModuleOp>> CreateInsertMainFunctionPass(); // Converts FakeQuant ops to quant.qcast and quant.dcast (QDQ) pairs. std::unique_ptr<OperationPass<func::FuncOp>> CreateConvertFakeQuantToQdqPass(); // Lifts the quantizable spots as composite functions. std::unique_ptr<OperationPass<ModuleOp>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/post_quantize.cc
rewriter.replaceOpWithNewOp<mlir::stablehlo::ConstantOp>( op, qtype, quantized_attr); return success(); } } return failure(); } }; // Replaces quantfork.dcast with stablehlo.uniform_dequantize. class ConvertDequantizeCastToUniformDequantizePattern : public OpRewritePattern<quantfork::DequantizeCastOp> { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc
ConstantOp new_const = rewriter.create<ConstantOp>( op->getLoc(), new_result_type, new_value_attr); ConvertOp dcast = rewriter.create<ConvertOp>(op->getLoc(), old_result_type, new_const); // replace all convert ops with dq op. convert_op->replaceAllUsesWith(dcast); // Return without scanning for the next ConvertOp as only one ConvertOp is // connected to all quantizable ops.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/validators.cc
return false; if (mlir::cast<IntegerAttr>(elements.front()).getInt() != 1 || mlir::cast<IntegerAttr>(elements.back()).getInt() != 1) return false; Builder b(op->getContext()); *x = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[1]).getInt()); *y = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[2]).getInt()); *z = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[3]).getInt());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.2K bytes - Viewed (0) -
subprojects/core-api/src/test/groovy/org/gradle/api/internal/provider/views/AbstractHasMultiValuesPropertyCollectionViewTest.groovy
then: property.get() == cast(["first", "second", "third", "forth", "fifth"]) when: collection.remove("third") then: property.get() == cast(["first", "second", "forth", "fifth"]) collection.size() == 4 when: collection.add("third") then: property.get() == cast(["first", "second", "forth", "fifth", "third"])
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 02 15:31:28 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
spec->required_same_scale_func = [op](const bool sign, const int bit_width) { return cast<SameScalesOpInterface>(op) .RequiredSameOperandsAndResultsScale(sign, bit_width); }; spec->required_same_quantized_axes_func = [op]() { return cast<SameScalesOpInterface>(op).RequiredSameQuantizedAxes(); }; } if (isa<FixedOutputRangeInterface>(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
if (!mlir::cast<ShapedType>(conv_op.getRhs().getType()).hasStaticShape()) { return false; } if (!mlir::cast<ShapedType>(conv_op.getLhs().getType()).hasStaticShape() && !mlir::cast<ShapedType>(conv_op.getType()).hasStaticShape()) { auto dnums = conv_op.getDimensionNumbers(); auto lhs_type = mlir::cast<ShapedType>(conv_op.getLhs().getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
platforms/core-runtime/stdlib-java-extensions/src/test/groovy/org/gradle/internal/CastTest.groovy
package org.gradle.internal import spock.lang.Specification import static Cast.cast class CastTest extends Specification { def "casting"() { given: def arg = "1" when: cast(Integer, arg) then: def e = thrown(ClassCastException) e.message == "Failed to cast object $arg of type ${arg.class.name} to target type ${Integer.name}" when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 14:28:48 UTC 2024 - 1.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc
// Check if the same-scale requirement is met. auto dq_arg_type = preceding_sc_op.getArg().getType().cast<TensorType>(); auto qtype = dq_arg_type.getElementType().cast<QuantizedType>(); auto q_result_type = sc_op.getType().cast<TensorType>(); auto out_qtype = q_result_type.getElementType().cast<QuantizedType>(); if (qtype != out_qtype) { avg_pool_op.emitError(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 23.6K bytes - Viewed (0)