- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 32 for ret_attrs (0.12 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
new_while_operands.push_back(it->getSecond()); } auto new_while = builder.create<TF::WhileOp>( while_op.getLoc(), body.getFunctionType().getInputs(), new_while_operands, while_op->getAttrs()); for (int64_t i = 0; i < while_op.getNumResults(); ++i) { if (!mlir::isa<TF::ResourceType>( getElementTypeOrSelf(while_op.getOperand(i).getType()))) { continue; }
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/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
auto new_cluster = builder->create<mlir::tf_device::ClusterOp>( cluster.getLoc(), new_cluster_result_types, /*operands=*/llvm::ArrayRef<Value>{}, cluster->getAttrs()); new_cluster.getBody().takeBody(cluster.getBody()); auto operand_not_in_cluster = [&](mlir::OpOperand& operand) { return !new_cluster.getOperation()->isProperAncestor(operand.getOwner()); };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
} // Rebuild the new operation with lesser number of results. OpBuilder builder(op); Operation *new_op = Operation::create( op->getLoc(), op->getName(), new_result_types, op->getOperands(), op->getAttrs(), op->getPropertiesStorage(), op->getSuccessors(), op->getNumRegions()); builder.insert(new_op); // Move region bodies to the new operation.
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/quantization/stablehlo/passes/quantization_patterns.h
OperationState new_state(candidate_op->getLoc(), candidate_op->getName().getStringRef(), inputs, output_types, candidate_op->getAttrs()); for (int i = 0; i < candidate_op->getNumRegions(); ++i) { new_state.addRegion(); } Operation* quantized_op = rewriter.create(new_state); if (candidate_op->getNumRegions() != 0) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc
new_result_types.push_back(while_op.getResultTypes()[i]); } } auto new_while_op = OpBuilder(while_op).create<WhileOp>( while_op.getLoc(), new_result_types, new_operands, while_op->getAttrs()); new_while_op.getCond().takeBody(while_op.getCond()); new_while_op.getBody().takeBody(while_op.getBody()); for (auto i = 0; i < n; ++i) { if (!while_op.getResult(i).use_empty()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc
for (auto extra_operand : extra_operands) new_types.push_back(extra_operand.getType()); auto new_while_op = OpBuilder(while_op).create<WhileOp>( while_op.getLoc(), new_types, operands, while_op->getAttrs()); new_while_op.getCond().takeBody(while_op.getCond()); new_while_op.getBody().takeBody(while_op.getBody()); while_op.replaceAllUsesWith( new_while_op.getResults().take_front(while_op.getNumResults()));
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/tensorflow/ir/tf_device.cc
// Skip derived `operandSegmentSizes` attribute as custom print format of // operands holds enough information to calculate these variadic operand list // lengths. p.printOptionalAttrDict( getOperation()->getAttrs(), /*elidedAttrs=*/ArrayRef<StringRef>{kOperandSegmentSizesAttr}); p << ' '; p.printRegion(getBody(), /*printEntryBlockArgs=*/false); } namespace {
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/quantization/tensorflow/passes/insert_main_function.cc
void SetFunctionPrivate(func::FuncOp func) { func.setVisibility(SymbolTable::Visibility::Private); // The `tf_saved_model` attributes can only be applied to public functions. for (auto& attr : func->getAttrs()) { StringRef attr_name = attr.getName().getValue(); if (attr_name.starts_with("tf_saved_model.")) { func->removeAttr(attr_name); } }
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/transforms/fused_kernel_matcher.cc
// contraction, with two additions: the list of ops which have been fused // together; epsilon (only with FusedBatchNorm). std::vector<NamedAttribute> attrs = contraction->getAttrs(); ArrayAttr fused_ops_attr = ArrayAttr::get(context, fused_ops); attrs.push_back( NamedAttribute(StringAttr::get(context, "fused_ops"), fused_ops_attr));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc
if (failed(max_unpooling.RewriteFunc())) { return signalPassFailure(); } } else { // We will look for the `tfl_fusable_op` attribute and fuse as a custom op. DictionaryAttr dict_attr = attr.getAttrs(); SmallVector<std::pair<StringRef, Attribute>, 4> attributes; bool tfl_fusable_op = false; for (auto attr_item : dict_attr) { // Push other attributes except the TFLFusableOp.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0)