tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc
// Returns if `op` is a resource declaration.
Returns if `op` is a resource declaration.
Returns if ` op ` is a resource declaration .
bool OpIsDeclaration(Operation* op,
                     const ResourceAliasAnalysis& alias_analysis) {
  return llvm::isa<TF::VarHandleOp>(op) ||
         ((llvm::isa<TF::IdentityNOp>(op) || llvm::isa<TF::IdentityOp>(op)) &&
          !FindAccessedResources(op, alias_analysis).empty());
}
bool OpIsDeclaration ( Operation * op , const ResourceAliasAnalysis & alias_analysis ) { return llvm :: isa < TF :: VarHandleOp > ( op ) || ( ( llvm :: isa < TF :: IdentityNOp > ( op ) || llvm :: isa < TF :: IdentityOp > ( op ) ) && ! FindAccessedResources ( op , alias_analysis ) . empty ( ) ) ; }
Returns if `op` is a resource declaration.
Returns if ` op ` is a resource declaration .
// TODO(yuanzx): Add other types of resources.