Example #1
0
        /// <summary>
        /// Returns the operation in the graph with the specific name. Returns null if
        /// no operation found.
        /// </summary>
        /// <param name="opName">The name of the operation</param>
        /// <returns>
        /// Returns the operation in the graph with the specific name. Returns null if
        /// no operation found.
        /// </returns>
        public Operation OperationByName(String opName)
        {
            IntPtr ptr = TfInvoke.tfeGraphOperationByName(_ptr, opName);

            if (ptr == IntPtr.Zero)
            {
                return(null);
            }
            return(new Operation(ptr));
        }