- Sort Score
- Result 10 results
- Languages All
Results 21 - 26 of 26 for qtype_attr (0.11 sec)
-
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/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/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/lite/experimental/tac/transforms/device_transform.cc
if (IsQI8Type(result_type) || IsQUI8Type(result_type)) { builder->setInsertionPoint(op); TFL::QuantizeOp quant_op = builder->create<TFL::QuantizeOp>( op->getLoc(), result_type, new_result, TypeAttr::get(result_type)); new_result = quant_op.getResult(); } // Rewire the outputs. result.replaceAllUsesWith(new_result); } // Remove the old op. op->erase();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
builder.create<tf_saved_model::GlobalTensorOp>( NameLoc::get(builder.getStringAttr(name.str())), builder.getStringAttr(name), tensor_attr, TypeAttr::get(tensor_attr.getType()), builder.getUnitAttr()); } return success(); } } // namespace LogicalResult LiftVariables(ModuleOp module, Session* session) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model_ops.td
sense of `tf.TensorShape` compatibility. And the element types must match. }]; let arguments = (ins StrAttr:$sym_name, OptionalAttr<ElementsAttr>:$value, TypeAttr:$type, UnitAttr:$is_mutable ); let hasVerifier = 1; } def TfSavedModel_SessionInitializerOp: TfSavedModel_Op<"session_initializer"> { let summary = "Initializes TensorFlow session state.";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 08:49:35 UTC 2023 - 7.2K bytes - Viewed (0)