- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 493 for operands_ (0.54 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc
constraints.Walk([](Value value, ValueConstraint constraint) { for (OpOperand &operand : value.getUses()) operand.getOwner()->emitRemark( llvm::formatv("operand #{0} constrained to: {1}", operand.getOperandNumber(), constraint)); }); } void EmitInputsConstraintsRemarks(func::FuncOp func,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 27.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td
// operand. class TF_DerivedOperandSizeAttr<int idx> : DerivedAttr< "size_t", "auto range = getODSOperands(" # idx # ");\n" "return std::distance(range.begin(), range.end());", [{ $_builder.getI64IntegerAttr($_self) }]>; // A derived attribute that returns the element type of `idx`-th ODS-declared // operand. If the `idx`-th operand is a variadic operand, then this attribute
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 30.5K bytes - Viewed (0) -
src/go/types/call.go
if n := len(elist); n == 1 { xlist, _ = check.multiExpr(elist[0], false) } else if n > 1 { // multiple (possibly invalid) values xlist = make([]*operand, n) for i, e := range elist { var x operand check.expr(nil, &x, e) xlist[i] = &x } } return } // genericExprList is like exprList but result operands may be uninstantiated or partially
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 33.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
if (mlir::isa<NoneType>(operand.getType())) operands.push_back(kTfLiteOptionalTensor); else if (auto stats_op = llvm::dyn_cast_or_null<mlir::quantfork::StatisticsOp>( operand.getDefiningOp())) operands.push_back(tensor_index_map.lookup(stats_op.getArg())); else operands.push_back(tensor_index_map.lookup(operand)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc
// original If op. if (op_to_inline.hasTrait<OpTrait::IsTerminator>()) { updated_results.reserve(op_to_inline.getNumOperands()); for (Value operand : op_to_inline.getOperands()) updated_results.push_back(mapper.lookup(operand)); break; } // Otherwise, clone the op here. rewriter.clone(op_to_inline, mapper); } rewriter.replaceOp(op, updated_results);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.cc
return success(); } // Returns directly if any of the operands is not an elements attributes. if (std::any_of(operands.begin(), operands.end(), [](Attribute attr) { return !attr || !mlir::isa<ElementsAttr>(attr); })) return failure(); SmallVector<ElementsAttr, 4> inputs; inputs.reserve(operands.size()); for (auto input : operands) { inputs.push_back(mlir::cast<ElementsAttr>(input)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/stateful_ops_utils.h
#include <vector> #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project namespace mlir { namespace TFL { // Check if the given op has stateful operands and return their stateful // operand indices. bool IsStatefulOp(Operation* op, std::vector<int>* stateful_operand_indices); } // namespace TFL } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 03 00:14:05 UTC 2023 - 1.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc
// that was extracted.. // Find the input edges to form the set of operands to the new function call. llvm::SetVector<Value> inputs; for (Operation* op : ops) { for (Value operand : op->getOperands()) { Operation* defining_op = operand.getDefiningOp(); if (!ops.contains(defining_op)) inputs.insert(operand); } } // Find the output edges to form the set of resutls of the new function call.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc
for (Value operand : op.getOperands()) { if (mlir::isa<tf_executor::TokenType>(operand.getType())) continue; if (mlir::isa<tf_executor::ControlType>(operand.getType())) break; if (is_switch && llvm::isa_and_nonnull<tf_executor::LoopCondOp>(operand.getDefiningOp())) continue; auto it = value_to_device.find(operand);
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/tensorflow/transforms/annotate_parameter_replication.cc
auto func = llvm::cast<func::FuncOp>(m.lookupSymbol(cluster_func.getFunc())); for (auto entry : llvm::enumerate(cluster_func.getOperands())) { auto operand = SkipIdentityAndReadVariable(entry.value()); auto block_arg = mlir::dyn_cast<BlockArgument>(operand); if (block_arg && block_arg.getOwner() == &replicate.GetBody()) { // Only mirrored args of ReplicateOp can be annotated.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.1K bytes - Viewed (0)