- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 68 for BlockArgument (0.18 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc
std::string value_device = ""; // If the value is defined as an argument of the func_op, adds it to // the argument list of the function that uses this op. if (BlockArgument block_arg = mlir::dyn_cast<BlockArgument>(value)) { if (StringAttr attr = func_op.getArgAttrOfType<StringAttr>( block_arg.getArgNumber(), kTFDeviceAttr)) { value_device = attr.getValue().str(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 13.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc
llvm::SmallDenseMap<llvm::StringRef, TF::ConstOp> const_ops; llvm::BitVector arg_indexes_to_remove(func.getNumArguments()); // Replace arguments with const ops. for (BlockArgument argument : func.getArguments()) { auto asset = LookupBoundInputOfType<AssetOp>( func, argument.getArgNumber(), symbol_table); if (asset == nullptr) { continue; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc
return (arg.hasOneUse() && llvm::isa<quantfork::QuantizeCastOp>(*arg.user_begin())); }; bool need_to_set_input_nodes_quantization_params = false; for (const BlockArgument arg : func.getArguments()) { auto shaped = mlir::dyn_cast<ShapedType>(arg.getType()); if (shaped && mlir::isa<FloatType>(shaped.getElementType()) && !has_quantize_op(arg)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
// is read in the function body. These read values are just the same argument // with type replaced. llvm::SmallVector<Value, 4> skipped_args; for (auto& it : hoister.GetResources()) { BlockArgument arg = mlir::dyn_cast<BlockArgument>(it.first); assert(arg && "Expect resources for FuncOp to be its arguments"); auto type_iter = resource_data_types.find(arg.getArgNumber()); if (type_iter == resource_data_types.end()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc
return (arg.hasOneUse() && llvm::isa<quantfork::QuantizeCastOp>(*arg.user_begin())); }; bool need_to_set_input_nodes_quantization_params = false; for (const BlockArgument arg : func.getArguments()) { auto shaped = mlir::dyn_cast<ShapedType>(arg.getType()); if (shaped && mlir::isa<FloatType>(shaped.getElementType()) && !has_quantize_op(arg)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc
// created entry block arguments in the function body. { Block &entry_block = outlined_func.getBody().front(); auto loc = outlined_func.getLoc(); for (Value operand : operands) { BlockArgument newArg = entry_block.addArgument(operand.getType(), loc); replaceAllUsesInRegionWith(operand, newArg, outlined_func.getBody()); } }
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/transforms/tpu_resource_partitioning.cc
if (auto* resource_op = resource.getDefiningOp()) { return resource_op->getAttr(kDeviceAttr); } else { const auto resource_arg = resource.dyn_cast_or_null<BlockArgument>(); if (resource_arg && (resource_arg.getOwner() == &(func.front()))) { return func.getArgAttrOfType<mlir::StringAttr>( resource_arg.getArgNumber(), kFuncDeviceAttr); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc
} TF::ConstOp tensor_names_const = CreateTensorNamesConst(tensor_names, builder); TF::ConstOp shape_and_slices_const = CreateShapeAndSlicesConst(tensor_names.size(), builder); BlockArgument filename_arg = save_func.getArgument(0); return builder.create<TF::SaveV2Op>( NameLoc::get(builder.getStringAttr(kTfQuantSaveV2OpName)), /*prefix=*/filename_arg, tensor_names_const, shape_and_slices_const,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
if (!arg.hasOneUse() || !mlir::isa<TF::ResourceType>(getElementTypeOrSelf(arg.getType()))) { continue; } auto block_arg = mlir::dyn_cast<BlockArgument>(arg); if (!block_arg || block_arg.getOwner() != &replicate.GetBody()) continue; assert(replicate_arg_to_execute_arg.count(block_arg.getArgNumber()) == 0 &&
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/quantization/tensorflow/passes/quantize_weights.cc
} return success(); } private: // Check if op's user or op's user after an identity op is connected to a // terminator. bool checkIfAnyUserIsConnectedToTermiantor(BlockArgument op) const { for (const auto& user : op.getUsers()) { if (user->template hasTrait<OpTrait::IsTerminator>()) return true; if (auto next_user = dyn_cast_or_null<TF::IdentityOp>(user)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 11.3K bytes - Viewed (0)