- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 146 for setAttrs (0.55 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc
if (auto device = res->getAttrOfType<StringAttr>("device")) { if (!device.getValue().empty()) result_id->setAttr("device", device); else result_id->setAttr("device", compile_device_op); } else if (compile_device_op) { result_id->setAttr("device", compile_device_op); } res.getOutput().replaceAllUsesWith(compile_op->getResult(0)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 29.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc
builder.setInsertionPoint(execute_launch); auto copy_with_layout = BuildCopyWithLayout(execute_launch, compile_launch, get_layout, input, &builder); copy_with_layout->setAttr(kDeviceAttr, execute_launch.getDeviceAttr()); execute.setOperand(execute_arg_index, copy_with_layout); } // Performs transformation for replicated inputs. Returns true if this is a
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/utils/call_graph_util.cc
} }); return entry_funcs; } LogicalResult GetCallees(SymbolUserOpInterface op, SymbolTable &symtab, llvm::SmallVector<func::FuncOp> &callees) { for (auto attr : op->getAttrs()) { auto sym = mlir::dyn_cast<SymbolRefAttr>(attr.getValue()); if (!sym) continue; auto callee = symtab.lookup<func::FuncOp>(sym.getRootReference()); if (!callee) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 2.6K 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) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
op->setAttr(TF::kReplicationInfoAttr, attr); } } // Replaces the replication region attribute if it already exists. void UpdateReplicationAttr(TF::TPUCompilationResultOp& op, StringAttr attr) { // Special case for getting the replication region for // TPUCompilationResultsOp. if (op->hasAttr(kTpuCompilationStatus)) { op->setAttr(kTpuCompilationStatus, attr); } }
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/lite/experimental/tac/transforms/tac_filter.cc
FunctionFilter::FunctionFilterType type, OpBuilder& builder) { for (Operation& op : func.front()) { if (type == FunctionFilter::SKIP_TARGET_ANNOTATION) { op.setAttr(kSkipTargetAnnotation, builder.getUnitAttr()); } else if (type == FunctionFilter::INCLUDE_TARGET_ANNOTATION) { op.removeAttr(kSkipTargetAnnotation); } } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc
} } OpBuilder builder(op); builder.setInsertionPointAfter(op); OperationState state(op->getLoc(), op->getName().getStringRef(), op->getOperands(), result_types, op->getAttrs()); for (int i = 0; i < op->getNumRegions(); ++i) { state.addRegion(); } Operation* new_op = builder.create(state); for (const auto& indexed_regions : llvm::enumerate(op->getRegions())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/kubelet/kubelet_node_status.go
var nodeAddressesFunc func() ([]v1.NodeAddress, error) if kl.cloud != nil { nodeAddressesFunc = kl.cloudResourceSyncManager.NodeAddresses } var setters []func(ctx context.Context, n *v1.Node) error setters = append(setters, nodestatus.NodeAddress(kl.nodeIPs, kl.nodeIPValidator, kl.hostname, kl.hostnameOverridden, kl.externalCloudProvider, kl.cloud, nodeAddressesFunc),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 31.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/translate_utils.cc
"bad_consumers", b.getI32ArrayAttr(llvm::ArrayRef<int32_t>( versions.bad_consumers().data(), versions.bad_consumers().data() + versions.bad_consumers().size()))); module->setAttr("tf.versions", b.getDictionaryAttr(llvm::ArrayRef<mlir::NamedAttribute>( {producer, min_consumer, bad_consumers}))); } mlir::LogicalResult ExtractTfVersions(mlir::ModuleOp module,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/debug/debug_test.cc
public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(MutatePass) void runOnOperation() override { mlir::OpBuilder builder(&getContext()); getOperation()->setAttr("tfl.random_attr", builder.getUnitAttr()); } }; class AlwaysFailPass : public mlir::PassWrapper<AlwaysFailPass, mlir::OperationPass<>> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(AlwaysFailPass)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 17 11:15:16 UTC 2024 - 9.7K bytes - Viewed (0)