Exemplo n.º 1
0
 public async Task ManagedCreateDataArrayByFillTest()
 {
     using (var ctx = new ManagedContext())
     {
         await CreateDataArrayByFillTest(ctx);
     }
 }
 public async Task ManagedMLPTrainBPTTGDOfflineTest()
 {
     using (var ctx = new ManagedContext())
     {
         await MLPTrainRecTest(ctx, GradientComputationMethod.BPTT, GetGDRules(WeigthUpdateMode.Offline, 0.01f));
     }
 }
 public async Task ManagedMLPComputeTest()
 {
     using (var ctx = new ManagedContext())
     {
         await MLPComputeTest(ctx);
     }
 }
Exemplo n.º 4
0
 public async Task ManagedCalculateMSETest()
 {
     using (var ctx = new ManagedContext())
     {
         await CalculateMSETest(ctx);
     }
 }
 public async Task ManagedMLPTrainGlobalRecCETest()
 {
     using (var ctx = new ManagedContext())
     {
         await MLPTrainRecTest(ctx, GradientComputationMethod.None, GetCERules(0.025f, 0.05f, 0.5f, 10));
     }
 }
 public async Task ManagedMLPTrainGlobalRecABTest()
 {
     using (var ctx = new ManagedContext())
     {
         await MLPTrainRecTest(ctx, GradientComputationMethod.None, GetABRules(0.01f, 0.01f, 0.95f));
     }
 }
Exemplo n.º 7
0
        public void Awake()
        {
            Context = new UnityContext(gameObject);
            var managedTypes = GetType().Assembly.GetTypes()
                               .Where(type => type.IsDefined(typeof(ManagedAttribute)))
                               .ToDictionary(type => type, type => type.GetCustomAttribute <ManagedAttribute>());

            foreach (var managedType in managedTypes)
            {
                // Key : type
                // Value : ManagedAttribute
                if (managedType.Value.ManagedType == ManagedType.Singleton)
                {
                    Context.GetManaged(managedType.Key);
                }
            }
        }
 public ManagedContextTest()
 {
     _context = new ManagedContext();
     _context.Register(typeof(ManagedContextTest).Assembly);
 }
Exemplo n.º 9
0
 public ManagedContextTest(ITestOutputHelper output)
 {
     _context = new ManagedContext();
 }
 public async Task ManagedMLPTrainFFGDOfflineTest()
 {
     using (var ctx = new ManagedContext())
     {
         await MLPTrainFFTest(ctx, GetGDRules(WeigthUpdateMode.Offline, 0.1f));
     }
 }
 public ManagedContextTest(ITestOutputHelper output)
 {
     _context = new ManagedContext();
     _context.Register(typeof(ManagedContextTest).Assembly);
 }