- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ResourceOpCanBeHoisted (0.24 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/hoist_loop_invariant.cc
llvm::StringRef shared_name; if (auto attr = op->getAttrOfType<StringAttr>("shared_name")) { shared_name = attr.getValue(); } return {container, shared_name, device, /*op=*/nullptr}; } bool ResourceOpCanBeHoisted( Operation *op, Region *region, const llvm::DenseSet<ResourceHandle> &read_only_vars) { // If the op is ReadVariableOp and the variable is readonly, it can be // hoisted.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0)