- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 172 for OP (0.21 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
op, op.getOutput().getType(), op.getScales(), op.getZeroPoints(), /*expressed_type=*/rewriter.getF32Type(), op.getQuantizationMinVal(), op.getQuantizationMaxVal(), op.getQuantizationAxis(), rewriter); if (failed(output_type)) { return failure(); } auto result = rewriter.create<mhlo::UniformQuantizeOp>( op->getLoc(), *output_type, op.getInput());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.cc
{static_cast<int64_t>(op->base_dilations.size())}, op->base_dilations, builder))); } if (!op->window_dilations.empty()) { attributes.emplace_back(builder.getNamedAttr( "window_dilations", BuildVhloTensorV1Attr( {static_cast<int64_t>(op->window_dilations.size())}, op->window_dilations, builder))); } if (!op->padding.empty()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 38K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
rewriter)) return success(); return failure(); } LogicalResult ConvertTFMatMulOp::matchAndRewrite( Operation* op, PatternRewriter& rewriter) const { auto tf_matmul_op = cast<TF::MatMulOp>(op); auto lhs = op->getOperand(0); auto rhs = op->getOperand(1);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc
UpdateSideEffectsByResourceId(entry.second, op_side_effect_map_[op]); } } } } // Collects op-based side effects for `op` in `op_side_effect_map_[op]`. void CollectOpSideEffects(Operation* op) { if (!MayHaveSideEffect(op)) return; // Skip following ops to avoid that every island, graph and function is
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 41.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
block.walk([&](Operation *op) { if (op->getName().getStringRef() != "tfg.NextIteration") return; mlir::OpBuilder builder(op); llvm::SmallVector<Value, 2> new_operands; FilterOutBlockArgControlDep(op->getOperands().drop_front(), new_operands); auto source_op = builder.create<tf_executor::NextIterationSourceOp>( op->getLoc(), op->getOperand(0).getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc
op->walk([&](Operation *op) { if (op->getDialect()->getNamespace() != "vhlo") return; // Convert operands rewriter.modifyOpInPlace(op, [&]() { rewriter.setInsertionPoint(op); WrapOperandsInUnrealizedCastAndConvert(op, converter, rewriter); // Convert op types for (auto value : op->getResults()) { rewriter.setInsertionPointAfter(value.getDefiningOp());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 19:48:51 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td
//===----------------------------------------------------------------------===// // DivNoNan and MulNonNan op patterns. //===----------------------------------------------------------------------===// class BinaryNoNanPat<Op FromOp, Op ToOp> : Pat<(FromOp $l, $r), (TF_SelectV2Op (TF_EqualOp $r, (TF_ConstOp:$zero (GetScalarOfType<0> $r)),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 24.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc
auto loader, tensorflow::XlaCallModuleLoader::Create( context, static_cast<int>(op.getVersion()), op.getModule().str(), std::move(disabled_checks), std::move(platforms), /*num_invocation_args=*/op.getArgs().size(), op.getHasTokenInputOutput())); return std::move(*loader).module(); } // Renames functions in the stablehlo module to avoid naming conflicts with
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc
LogicalResult match(Operation* op) const override { if (op->getNumResults() != 1) { return failure(); } auto type = mlir::cast<TensorType>(op->getResult(0).getType()); if (!type || !type.getElementType().isF32()) { return failure(); } return success( op->hasOneUse() && IsWeightQuantizableFunction(*op->getUses().begin(), type.getRank())); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.h
// Runs the analysis and populates `control_predecessors_` for `op`. void AnalyzeOp(Operation* op); // Updates `control_predecessors_` for given `resource_id` and `op`. void AddPredecessorsForAccess(ResourceId resource_id, Operation* op, bool read_only); // Updates resource access for given `resource_id` and `op` in // `per_resource_access_info_` and `op_to_resource_ids_`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 14.8K bytes - Viewed (0)