- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 25 for getOperandTypes (0.25 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
// The return value of the graph operation are the non-control operands of // the fetch operation. result.types.reserve(fetch.getNumOperands()); for (Type type : fetch.getOperandTypes()) { if (mlir::isa<ControlType>(type)) break; result.types.push_back(type); } // Parse the optional attribute list. if (parser.parseOptionalAttrDict(result.attributes)) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
// is qint and its defining op is not already an int->qint CastOp. llvm::SmallVector<Value, 4> new_operands; for (int i = 0; i < operands.size(); ++i) { Type orig_op_type = op->getOperandTypes()[i]; if (IsIllegalType(orig_op_type) && !IsQintValueDefinedByIntToQintCast(op->getOperand(i))) { new_operands.push_back(rewriter.create<TF::CastOp>(
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/promote_resources_to_args.cc
} } const int64_t num_results_before = function.getNumResults(); auto return_operands = llvm::to_vector<4>(return_op.getOperands()); auto result_types = llvm::to_vector<4>(return_op.getOperandTypes()); llvm::SmallVector<std::pair<int64_t, llvm::StringRef>, 4> output_only_resources; llvm::SmallVector<std::pair<int64_t, int64_t>, 4> input_output_alias;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc
auto devices = replicate_op.getDevices(); // Collect result types and operands. Operation& terminator = replicate_op.GetBody().back(); llvm::SmallVector<Type, 8> output_types(terminator.getOperandTypes()); auto control_type = tf_executor::ControlType::get(island_op.getContext()); llvm::SmallVector<Value, 8> replica_inputs(island_op.getControlInputs()); // Replace replicate terminator with YieldOp.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 24 21:01:40 UTC 2023 - 16.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc
yield.setOperand(0, identity.getOutput()); } else { auto identity_n = builder.create<TF::IdentityNOp>( island.getLoc(), yield.getOperandTypes(), yield.getOperands()); for (auto it : llvm::enumerate(identity_n.getResults())) yield.setOperand(it.index(), it.value()); } }
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/tf2xla/transforms/tf2xla_rewriter.cc
tensorflow::XlaExpression::AssignExpressionToTensor(expr, &tensor); inputs.emplace_back(&tensor); } return success(); } LogicalResult Tf2XlaRewriter::LegalizeOp() { for (Type ty : op_->getOperandTypes()) { auto ranked_ty = mlir::dyn_cast<ShapedType>(ty); // Only bounded operands are supported in the XLA builders. if (!IsBounded(ranked_ty)) { return op_->emitRemark()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 18.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
auto new_replicate = builder.create<tf_device::ReplicateOp>( replicate.getLoc(), num_replicas, devices, new_replicated_inputs, new_packed_inputs, replicate.GetBody().getTerminator()->getOperandTypes()); for (auto arg : replicate.GetBody().getArguments()) { if (replicate.IsReplicatedBlockArgument(arg)) { arg.replaceAllUsesWith( new_replicate.GetBody().getArgument(arg.getArgNumber()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
const int size_before = output_types->size(); for (int index = start; index < end; ++index) { Block& block = parallel_execute.GetRegionBlockWithIndex(index); auto terminator_operand_types = block.getTerminator()->getOperandTypes(); output_types->append(terminator_operand_types.begin(), terminator_operand_types.end()); } return output_types->size() - size_before; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 17:52:11 UTC 2024 - 27K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
handle_new_size_vars(func.getArguments().drop_front(original_arg_count)); } func.setType( FunctionType::get(func.getContext(), new_input_types, func.front().getTerminator()->getOperandTypes())); } // Contains cached information for decomposed callee functions for (stateful) // partitioned call ops. struct PartitionedCallStackOpsInfo { bool signature_change; func::FuncOp decomposed_callee;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc
ret_operands.push_back(operand->getValue()); } builder_.create<func::ReturnOp>(func_.getLoc(), ret_operands); auto arg_types = body.getArgumentTypes(); auto result_types = body.getTerminator()->getOperandTypes(); func_.setType(FunctionType::get(func_.getContext(), arg_types, result_types)); *f = new MlirFunction(std::move(context_), std::move(module_), func_); return absl::OkStatus(); } extern "C" {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.2K bytes - Viewed (0)