- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for getOperandTypes (0.31 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h
if (!mlir::tf_type::HasCompatibleElementTypes(type, result_type)) return op->emitOpError() << "requires all return types to have compatible element types"; } for (auto operand_type : op->getOperandTypes()) { if (!mlir::tf_type::HasCompatibleElementTypes( operand_type, type, /*may_ignore_ref_type_lhs=*/true)) return op->emitError() << "requires all operands and results to have "
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/decompose_reduce_dataset.cc
Location loc) { auto& cond_region = dataset_while.getCond(); Block* cond_block = builder.createBlock(&cond_region); auto while_input_types = dataset_while.getOperandTypes(); cond_block->addArguments( while_input_types, SmallVector<Location>(while_input_types.size(), loc)); builder.create<YieldOp>(loc, cond_block->getArgument(0)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
func_op.getArgumentTypes().end()); auto& return_op = func_op.getBody().getBlocks().front().back(); result_types.append(return_op.getOperandTypes().begin(), return_op.getOperandTypes().end()); for (const auto& arg : func_op.getArguments()) { arg_locs.push_back(arg.getLoc()); } } // Creates a new main function.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc
auto* region_terminator = region.front().getTerminator(); // Check that output types of regions match return operand types. for (auto result_type : region_terminator->getOperandTypes()) { if (result_type != op.getOperation()->getResult(output_index++).getType()) { return op.emitOpError() << "output types must be a concatenated "
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/transforms/tensor_list_ops_decomposition.cc
for (auto arg : func.getArguments()) arg_types.push_back(arg.getType()); func.setType( FunctionType::get(func.getContext(), arg_types, func.front().getTerminator()->getOperandTypes())); } // Holds the size value of a tensor list and whether the size is statically // known (fixed). struct SizeInfo { Value size; bool fixed; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc
for (auto idx : dynamic_arg_idx.getValue()) { dynamic_arg_idx_set.insert(mlir::dyn_cast<IntegerAttr>(idx).getInt()); } } for (auto operand_type_and_idx : llvm::enumerate(op.getOperandTypes())) { Type operand_type = operand_type_and_idx.value(); int index = operand_type_and_idx.index(); tensorflow::tpu::TPUCompileMetadataProto::Arg* arg = metadata->add_args(); tensorflow::DataType dtype;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
for (func::FuncOp func : cloned_branches) { func.setType( FunctionType::get(func.getContext(), func.front().getArgumentTypes(), func.front().getTerminator()->getOperandTypes())); } EliminateUnusedResults(op); } // Eliminated unused results from a functional while. void EliminateUnusedResultsForWhile(TF::WhileOp op) { func::FuncOp cond = op.cond_function();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc
terminator->erase(); // Create new island for each region. builder->setInsertionPoint(island_op); auto execute_island = builder->create<tf_executor::IslandOp>( island_op.getLoc(), yield.getOperandTypes(), island_op.getControl().getType(), island_op.getControlInputs()); // Move over tf_device.parallel_execute body region into newly the created // island.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 19 19:47:16 UTC 2023 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc
func.getLoc(), /*program=*/result_type, llvm::ArrayRef<Value>{}); auto recv_at_host = rewriter.create<TF::_XlaRecvAtHostOp>( func.getLoc(), op.getOperandTypes(), /*dynamic_key=*/dynamic_key, op.getSendKeyAttr(), /*device_ordinal=*/rewriter.getI64IntegerAttr(0), rewriter.getStringAttr("TPU")); for (auto result :
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc
FunctionType type; if (passthru_extra_args) { type = FunctionType::get(context, types, types); } else { SmallVector<Type, 4> result_types; auto operands = region.front().getTerminator()->getOperandTypes(); result_types.append(operands.begin(), operands.end()); type = FunctionType::get(context, types, result_types); } auto outlined_func = builder.create<func::FuncOp>(loc, name, type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0)