- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for EraseResults (0.08 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc
// Operation::eraseArguments does (but for results). // This is a lengthy bit of code, since it has to recreate the operation. // TODO(kramm): Move this under utils/ somewhere. void EraseResults(Operation* op, llvm::BitVector erase) { assert(!op->getNumRegions()); std::vector<Type> result_types; for (auto result : op->getResults()) { if (!erase[result.getResultNumber()]) {
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/tf_saved_model_freeze_variables.cc
llvm::BitVector result_indices_to_erase; UpdateTerminatorArguments(func, args_to_erase, result_indices_to_erase); EraseFuncOpArguments(func, args_to_erase); func.eraseResults(result_indices_to_erase); } else if (auto read_var = dyn_cast<TF::ReadVariableOp>(user_op)) { // Read variables was already replaced by constant op. Just remove the op. read_var->erase();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0)