Thanx @rhyolight Matt for your links. It is very useful information. But I want to clarify some moments. I look at pseudocode Running a network on Network API Guide. for iteration in (1, …, n): for phase in (minPhase, …, maxPhase): for each region associated with this phase: region.prepareInputs() region.compute() invoke all network callbacks
What value can I set on phase, minPhase, maxPhase?
Can I compute only necessary region?
Every region in a network has a phase and the regions are executed in the order of phase (ascending). When you call network.run, all regions are executed in this order. If you want to execute a single region, you can call the methods on the region directly.