- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 461 for operand$i (0.16 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc
llvm::SetVector<Value> operands; getUsedValuesDefinedAbove(island_op.getBody(), operands); SmallVector<Type, 16> func_operand_types; func_operand_types.reserve(operands.size()); for (Value operand : operands) func_operand_types.push_back(operand.getType()); // Function results are the yield operands SmallVector<Type, 16> func_result_types;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h
if (!result_ty) { return emitOptionalError(location, "Expected shape type for operand 0"); } for (auto [index, ty] : llvm::drop_begin(llvm::enumerate(operands.getTypes()), 1)) { auto shape_type = llvm::dyn_cast_or_null<ShapedType>(ty); if (!shape_type) { return emitOptionalError(location, "Expected shape type for operand ",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc
ConstOp permutation_op; // Layout dependent operands must be transpose operations with the same // permutation indices. for (unsigned idx : layout_dependent_operands) { OpOperand& operand = op->getOpOperand(idx); // Operand must be defined by a transpose op. TransposeOp transpose = dyn_cast_or_null<TransposeOp>(operand.get().getDefiningOp());
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/tensorflow/ir/tf_device.cc
MutableArrayRef<OpOperand> operands = GetOperandsForBlockArgument(block_arg); if (operands.size() == 1) return operands.front().get(); return operands[replica].get(); } // Returns the list of replica op operands that maps to the given block // argument. Returns list with num_replicas elements for replicated operands // and list with a single element for packed operands. // // Requires that block argument is of this replicate op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/eval_util.cc
TFE_Context* context, llvm::SmallVectorImpl<mlir::Attribute>* results) { if (!context) { VLOG(1) << "Can't evaluate with null context."; return mlir::failure(); } // If any operand is nullptr returns true for a failure. // TODO(b/120678030): remove this constraint if we find operators can be // evaluated with some unknown operands.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 13 06:02:14 UTC 2023 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc
} } // Visits all operands of an op where each operand is an output of an Operation // in the same tf_executor.graph. void VisitOpOperands(GraphOp graph, Operation* op, llvm::SmallPtrSetImpl<Operation*>* reachable_ops, llvm::SmallVectorImpl<Operation*>* ops_to_visit) { for (Value operand : op->getOperands()) VisitOpOperand(graph, operand, reachable_ops, ops_to_visit); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc
state.addRegion()->takeBody(region); } // Assign existing operands for item. operands.assign(item.operand_begin(), item.operand_end()); // Collect defining ops for existing operands. defining_ops.clear(); for (Value operand : operands) { defining_ops.insert(operand.getDefiningOp()); } for (Value new_control_input : llvm::reverse(new_control_inputs_for_item)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 11 20:52:36 UTC 2023 - 16.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
for (auto operand : forward_caller->getOperands()) { if (llvm::isa<BlockArgument>(operand)) { // Pull this from the original operands to the original while op. auto arg = llvm::cast<BlockArgument>(operand); f_operands.push_back(loop_operands[arg.getArgNumber()]); continue; } auto src = operand.getDefiningOp();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
if (!IsIllegalType(v.getType())) { return true; } if (v.getUsers().empty()) { return false; } return llvm::all_of(v.getUsers(), [&](OpOperand operand) { return IsQintToIntCast(operand.getOwner()); }); } // Check if an op operand value is defined by int -> qint TF Cast OP. bool IsQintValueDefinedByIntToQintCast(Value v) { if (!IsIllegalType(v.getType())) { return true; }
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/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc
// core. j-th column holds the operands for j-th replica. llvm::SmallVector<llvm::SmallVector<Value, 4>, 4> operands_per_replica_per_core(num_cores_per_replica); // Collect all operands in the 2D matrix. for (auto operand : replicated_input.getInputs()) { Operation* pi = operand.getDefiningOp(); for (unsigned core_id = 0; core_id < num_cores_per_replica; ++core_id) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 24 23:08:55 UTC 2023 - 7.3K bytes - Viewed (0)