- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for new_operands (0.14 sec)
-
tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc
OpBuilder builder(region); auto block = builder.createBlock(®ion); SmallVector<Value, 4> new_operands; for (Type t : func.getFunctionType().getInputs()) new_operands.push_back(block->addArgument(t, loc)); auto call = builder.create<func::CallOp>(loc, func, new_operands); builder.create<YieldOp>(loc, call.getResults()); // Mark old function as private so that it can be DCE'd if not called.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc
return mlir::cast<ShapedType>(old_type).clone(element_type); } SmallVector<Value> CloneOpWithReplacedOperands( OpBuilder& builder, Operation* op, const ArrayRef<Value> new_operands) { IRMapping mapping; for (const auto& arg : enumerate(new_operands)) { mapping.map(op->getOperand(arg.index()), arg.value()); } return builder.clone(*op, mapping)->getResults(); } FailureOr<int32_t> CastI64ToI32(const int64_t value) {
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/decompose_hybrid_quantization.cc
Location loc = op->getLoc(); SmallVector<Value> newOperands; newOperands.reserve(op->getNumOperands()); for (auto operand : op->getOperands()) { if (QuantizedType::getQuantizedElementType(operand.getType())) { auto newTy = QuantizedType::castToExpressedType(operand.getType()); newOperands.push_back( rewriter.create<TFL::DequantizeOp>(loc, newTy, operand));
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/tfrt/ir/mlrt/tf_mlrt_tpu_ops.td
}]; let arguments = (ins Variadic<TFTensorType>:$operands_and_static_shapes, DenseI32ArrayAttr:$constant_operand_indices, StrAttr:$metadata, StrAttr:$mlir_module, UI32Attr:$num_operands, DenseI32ArrayAttr:$operands_with_static_shape, StrAttr:$producer_name ); let results = (outs TFTensorType:$rendezvous_key_base, Variadic<MlrtFutureType>:$results );
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 04 21:25:31 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td
}]; let arguments = (ins Variadic<TF_Tensor>:$operands_and_static_shapes, DenseI32ArrayAttr:$constant_operand_indices, StrAttr:$metadata, StrAttr:$mlir_module, UI32Attr:$num_operands, DenseI32ArrayAttr:$operands_with_static_shape, StrAttr:$producer_name ); let results = (outs TF_Tensor:$rendezvous_key_base, Variadic<TF_Tensor>:$results );
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 21:35:32 UTC 2024 - 6.7K bytes - Viewed (0)