Esempio n. 1
0
        public virtual void Dispose()
        {
            m_Vars?.Dispose();
            m_Ops?.ResetAllocator(false); // clear allocator's memory
            m_InputShapes?.Clear();
            m_DummyInput?.Dispose();

            m_Vars        = null;
            m_Ops         = null;
            m_InputShapes = null;
        }
Esempio n. 2
0
        protected void ReleaseTemporary()
        {
            m_TemporaryName = null;
            if (m_Temporary == null)
            {
                return;
            }

            if (IsTensorOwnedByInternalAllocator(m_Temporary))
            {
                m_Temporary.Dispose();
            }
            m_Temporary = null;
        }