Esempio n. 1
0
        protected override DatasetDescriptor get_dataset_override(int nProjectID)
        {
            if (m_igym == null)
            {
                m_igym = m_colGyms.Find(m_strName);
            }

            return(m_igym.GetDataset(DATA_TYPE.VALUES));
        }
        /// <summary>
        /// Returns the dataset descriptor of the Gym.
        /// </summary>
        /// <param name="type">Specifies the dataset type.</param>
        /// <returns>The DatasetDescriptor for the Gym is returned.</returns>
        public DatasetDescriptor GetDataset(DATA_TYPE type)
        {
            if (m_igym == null)
            {
                throw new Exception("You must first Initialize the MyCaffePythonGym!");
            }

            return(m_igym.GetDataset(type));
        }
Esempio n. 3
0
        protected override DatasetDescriptor get_dataset_override(int nProjectID)
        {
            IXMyCaffeGym igym = m_igym;

            if (igym == null)
            {
                igym = m_colGyms.Find(m_strName);
            }

            m_ds = igym.GetDataset(DATA_TYPE.BLOB);

            return(m_ds);
        }