- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 96 for type_attr (0.19 sec)
-
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
legacy_float_scale, use_fake_quant_num_bits); if (!final_type) return {}; return TypeAttr::get(final_type); } TypeAttr CastQuantizedTypeAttrFromExpressedType(const Builder builder, const TypeAttr source, const Type target, const int axis) {
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/quantization/lite/tfl_to_std.cc
} else if (auto q = llvm::dyn_cast<quantfork::QuantizeCastOp>(op)) { auto out_type = q.getResult().getType(); auto qcast = b.create<QuantizeOp>(q.getLoc(), out_type, q.getArg(), TypeAttr::get(out_type)); q.getResult().replaceAllUsesWith(qcast); if (auto extra_attr = op->getAttr(mlir::quant::kVolatileOpAttrName)) { qcast->setAttr(mlir::quant::kVolatileOpAttrName, extra_attr); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 02:50:01 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
auto new_filter_constant_value_attr = DenseIntElementsAttr::get(new_filter_value_attr_type, new_filter_values); return rewriter.create<TFL::QConstOp>( filter_constant_op.getLoc(), /*output=*/TypeAttr::get(new_filter_result_type), /*value=*/new_filter_constant_value_attr); } // Creates the `tfl.qconst` for filter. If `rhs_op` is a `stablehlo.constant`,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/ConvertConst.cc
auto fusedLoc = rewriter.getFusedLoc( {qbarrier.getArg().getDefiningOp()->getLoc(), qbarrier.getLoc()}); auto newConstOp = rewriter.create<arith::ConstantOp>( fusedLoc, newConstValueType, cast<TypedAttr>(newConstValue)); rewriter.replaceOpWithNewOp<StorageCastOp>(qbarrier, qbarrier.getType(), newConstOp); return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.td
// determined while going through quantization passes. OptionalAttr<TypeAttr>:$input_to_input_intermediate, OptionalAttr<TypeAttr>:$input_to_forget_intermediate, OptionalAttr<TypeAttr>:$input_to_cell_intermediate, OptionalAttr<TypeAttr>:$input_to_output_intermediate, OptionalAttr<TypeAttr>:$effective_hidden_scale_intermediate ); let results = (outs AnyTensor:$output);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc
if (tensorflow::IsRefType(dtype)) dtype = tensorflow::RemoveRefType(dtype); value->set_type(dtype); return absl::OkStatus(); } Status ConvertAttribute(const mlir::TypeAttr& type, bool remove_ref_type, AttrValue* value) { return ConvertAttribute(type.getValue(), remove_ref_type, value); } Status ConvertAttribute(const mlir::UnitAttr& attr, AttrValue* value) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc
Type resultTy = op->getOpResult(i).getType(); if (QuantizedType::getQuantizedElementType(resultTy)) { replaceResults.push_back(rewriter.create<TFL::QuantizeOp>( loc, resultTy, result, TypeAttr::get(resultTy))); continue; } replaceResults.push_back(result); } rewriter.replaceOp(op, replaceResults); return success(); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc
EinsumDimensionNumbers& dnums, Location loc, PatternRewriter* rewriter) { BoolAttr true_attr = rewriter->getBoolAttr(true); // Build ShapeOp auto shape_lhs = rewriter->create<TF::ShapeOp>(loc, org_lhs, true_attr); auto shape_rhs = rewriter->create<TF::ShapeOp>(loc, org_rhs, true_attr); std::vector<int32_t> bl_index; // Indexes of B0,...,Bn and L0,...,Ln
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/post_quantize.cc
output_shape, mlir::cast<quant::UniformQuantizedType>(output_type.getElementType()) .getStorageType()); rewriter.replaceOpWithNewOp<QConstOp>( op, TypeAttr::get(result_type), DenseIntElementsAttr::get(values_type, new_values)); return success(); } }; // Fold constant quantized Reshape ops. struct FoldReshapeOp : public OpRewritePattern<ReshapeOp> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt
*/ internal object DnsRecordCodec { private const val SERVFAIL = 2 private const val NXDOMAIN = 3 const val TYPE_A = 0x0001 const val TYPE_AAAA = 0x001c private const val TYPE_PTR = 0x000c private val ASCII = Charsets.US_ASCII fun encodeQuery( host: String, type: Int, ): ByteString = Buffer().apply { writeShort(0) // query id
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.8K bytes - Viewed (0)