- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 105 for constop (0.15 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc
llvm::cl::init(false)}; }; void CopyConstantIntoFunc(int argument_index, Operation* const_op, func::FuncOp func) { assert( (llvm::isa<TFL::ConstOp, TFL::QConstOp, arith::ConstantOp>(const_op)) && "Expect QConst or Const op."); OpBuilder builder(func.getBody()); auto cloned_const_op = const_op->clone(); cloned_const_op->setLoc(func.getBody().getLoc()); builder.insert(cloned_const_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc
func.walk([&](Operation* op) { // TODO(renjieliu): Find a generic way to deal with const ops. if (op->hasTrait<OpTrait::IsTerminator>() || llvm::isa<TFL::QConstOp, TFL::ConstOp>(op) || llvm::isa<TFL::QConstOp, TFL::ConstOp, TF::ConstOp, ConstOp>(op)) return; bool int8_type_observed = false; bool uint8_type_observed = false;
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/quantization/tensorflow/cc/constant_fold.cc
preceding_const_op = preceding_result.getDefiningOp<TF::ConstOp>(); inputs.push_back(preceding_const_op.getValue()); } SmallVector<Attribute> result_values; if (failed(TF::EvaluateOperation(op, inputs, result_values))) { return failure(); } results.clear(); builder.setInsertionPointAfter(op); for (const auto& result_value : result_values) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
loc, mlir::RankedTensorType::get({}, getElementTypeOrSelf(shape)), shape, /*begin=*/ builder->create<TF::ConstOp>(loc, builder->getI32TensorAttr({idx})), /*end=*/ builder->create<TF::ConstOp>(loc, builder->getI32TensorAttr({idx + 1})), /*strides=*/ builder->create<TF::ConstOp>(loc, builder->getI32TensorAttr({1})), /*begin_mask=*/0, /*end_mask=*/0, /*ellipsis_mask=*/0,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc
ShapedType new_type = shaped_quantized_type.clone(storage_type); rewriter.setInsertionPointAfter(op); auto const_op = rewriter.create<TF::ConstOp>(op.getLoc(), new_type, tensor_proto_attr); auto new_identity_op = rewriter.create<TF::IdentityOp>( op->getLoc(), const_op.getType(), const_op); return new_identity_op.getResult(); } Operation* LogicsForUniformDequanization(PatternRewriter& rewriter,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
Value CreateZeroInput(Location loc, OpBuilder& builder, Attribute zero_attr, DenseIntElementsAttr shape_attr) { ConstOp zero = builder.create<ConstOp>(loc, zero_attr); zero->setAttr(kICIWeightDistributionMlirBridgeMarker, builder.getBoolAttr(true)); ConstOp shape = builder.create<ConstOp>(loc, shape_attr); shape->setAttr(kICIWeightDistributionMlirBridgeMarker, builder.getBoolAttr(true));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 18:52:07 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc
// Helper method that returns an op from 'transpose_ops' that match criteria // for an 'operand' and 'permutation' TransposeOp ReuseExistingTranspose(const OpOperand* operand, const SmallVector<int64_t, 4>& permutation, Operation* op, ConstOp permutation_op, SmallVector<TransposeOp, 2>* transpose_ops) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
// Consider UQ op legal if it has a CastOp next to the qint input/output. if (IsTFUniformQuantizedOp(op)) { return IsTFUniformQuantizedOpLegal(op); } else if (auto cast_op = llvm::dyn_cast<TF::CastOp>(op)) { return IsCastOpLegal(cast_op); } else if (auto const_op = llvm::dyn_cast<TF::ConstOp>(op)) { return !IsIllegalType(const_op.getOutput().getType()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
float ratio_threshold = kBlockOverRandomSparsityRatio; if (isa<ConstOp>(inst)) { supported_block_size = sparse_op.GetFloatBlockSize(); type = mlir::cast<ShapedType>(dyn_cast<ConstOp>(inst).getType()); } else if (isa<QConstOp>(inst)) { supported_block_size = sparse_op.GetQuantizedBlockSize(); type = mlir::cast<ShapedType>(dyn_cast<QConstOp>(inst).getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc
} } const DimensionVector& batch_dimensions() const { return batch_dimensions_; } const DimensionVector& contracting_dimensions() const { return contracting_dimensions_; } // Out dimensions are any dimensions that are neither batch nor contracting // dimensions, hence will be propagated to output shape. const DimensionVector& out_dimensions() const { return out_dimensions_; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.2K bytes - Viewed (0)