- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 196 for get_arg (0.17 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc
static Operation* CallFn(Location loc, const std::function<Value(int)>& get_arg, func::FuncOp fn, OpBuilder* builder) { FunctionType fn_type = fn.getFunctionType(); llvm::SmallVector<Value, 4> operands; int num_operands = fn_type.getNumInputs(); operands.reserve(num_operands); for (int i = 0; i < num_operands; ++i) { Value val = get_arg(i); Type expected = fn_type.getInput(i);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 13 11:42:59 UTC 2023 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc
LogicalResult matchAndRewrite(quantfork::DequantizeCastOp dq_op, PatternRewriter& rewriter) const override { auto q_op = dq_op.getArg().getDefiningOp<quantfork::QuantizeCastOp>(); if (!q_op) return failure(); dq_op.replaceAllUsesWith(q_op.getArg()); return success(); } }; class QuantizeSameScaleOpsPattern : public OpRewritePattern<quantfork::DequantizeCastOp> { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 23.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/post_quantize.cc
if (const QuantizedType qtype = QuantizedType::getQuantizedElementType(q.getArg().getType())) { rewriter.setInsertionPoint(op); rewriter.replaceOpWithNewOp<quantfork::DequantizeCastOp>( op, op.getResult().getType(), q.getArg()); return success(); } op.replaceAllUsesWith(q.getArg()); return success(); } return failure(); } };
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/tensorflow/passes/post_quantize.cc
if (auto qtype = QuantizedType::getQuantizedElementType(q.getArg().getType())) { rewriter.setInsertionPoint(op); rewriter.replaceOpWithNewOp<quantfork::DequantizeCastOp>( op, op.getResult().getType(), q.getArg()); return success(); } op.replaceAllUsesWith(q.getArg()); return success(); } return failure(); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 5.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/testdata/issue42580.go
} func TestSingleArgumentCastRecFuncAsSimpleArg() C.int { retcode := C.func_with_char((*C.char)(unsafe.Pointer(C.get_arr((*C.char)(unsafe.Pointer(&singleInnerPointerChecked[0])), unsafe.Pointer(C.strarg)))), nil) return retcode } func TestSingleArgumentCastRecFunc() C.int { retcode := C.func_with_char((*C.char)(unsafe.Pointer(C.get_arr((*C.char)(unsafe.Pointer(&doublePointerChecked[0])), unsafe.Pointer(C.strarg)))), unsafe.Pointer(C.strarg))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc
std::unique_ptr<OpQuantSpec> spec = GetTFOpQuantSpec(call_op); for (int32_t cur_idx = 0; cur_idx < call_op.getArgs().size(); cur_idx++) { // Check if the only the weight index has QuantizeCastOp. auto cur_op = dyn_cast_or_null<quantfork::QuantizeCastOp>( call_op.getArgs()[cur_idx].getDefiningOp()); if (!cur_op && spec->quantizable_operands.contains(cur_idx)) { return false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 54.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/converter_gen.cc
verify_ctx.addSubst(value.name, formatv("op->getResult({0})", i)); } GenOperandResultVerifier(os, def->getValueAsDag("arguments")->getArgs(), "operand"); GenOperandResultVerifier(os, def->getValueAsDag("results")->getArgs(), "result"); for (auto &trait : op.getTraits()) { if (!trait.getDef().isSubClassOf("GenInternalOpTrait")) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 15:05:28 UTC 2023 - 23.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc
if (preceding_cast.getArg().getDefiningOp()) { auto redundant_cast = preceding_cast.getArg().getDefiningOp<CastOp>(); if (!redundant_cast || redundant_cast.getArg().getType() != preceding_cast.getOut().getType()) { return failure(); } raw_data_op.getOutput().replaceAllUsesWith(redundant_cast.getArg()); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 21 16:55:41 UTC 2023 - 38.2K bytes - Viewed (0) -
fastapi/_compat.py
field_annotation_is_scalar(sub_annotation) for sub_annotation in get_args(annotation) ) def is_bytes_or_nonable_bytes_annotation(annotation: Any) -> bool: if lenient_issubclass(annotation, bytes): return True origin = get_origin(annotation) if origin is Union or origin is UnionType: for arg in get_args(annotation): if lenient_issubclass(arg, bytes):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 22.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/ir/QuantOps.cc
// Matches x -> [scast -> scast] -> y, replacing the second scast with the // value of x if the casts invert each other. auto srcScastOp = getArg().getDefiningOp<StorageCastOp>(); if (!srcScastOp || srcScastOp.getArg().getType() != getType()) return OpFoldResult(); return srcScastOp.getArg(); } /// The quantization specification should match the expressed type.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0)