@@ -210,6 +210,7 @@ void TMRegion::compute() {
210210 Array &externalPredictiveInputsWinners = getInput (" externalPredictiveInputsWinners" )->getData ();
211211 SDR& externalPredictiveInputsWinnerCells = (args_.externalPredictiveInputs ) ? (externalPredictiveInputsWinners.getSDR ()) : nullSDR;
212212
213+ // Trace facility
213214 NTA_DEBUG << " compute " << *in << std::endl;
214215
215216 // Perform Bottom up compute()
@@ -231,34 +232,32 @@ void TMRegion::compute() {
231232 //
232233 std::shared_ptr<Output> out;
233234 out = getOutput (" bottomUpOut" );
234- // set
235- NTA_LOG_LEVEL = htm::LogLevel::LogLevel_Verbose;
236- NTA_CHECK (NTA_LOG_LEVEL == LogLevel::LogLevel_Verbose) << " setting Verbose failed, man" ;
237- // to output the NTA_DEBUG statements below
235+ // call Network::setLogLevel(LogLevel::LogLevel_Verbose);
236+ // to output the NTA_DEBUG statements below
238237 SDR& sdr = out->getData ().getSDR ();
239238 tm_->getActiveCells (sdr); // active cells
240239 if (args_.orColumnOutputs ) { // output as columns
241240 sdr = tm_->cellsToColumns (sdr);
242241 }
243- NTA_DEBUG << " bottomUpOut " << *out << std::endl;
242+ NTA_DEBUG << " compute " << *out << std::endl;
244243
245244 out = getOutput (" activeCells" );
246245 tm_->getActiveCells (out->getData ().getSDR ());
247- NTA_DEBUG << " active " << *out << std::endl;
246+ NTA_DEBUG << " compute " << *out << std::endl;
248247
249248 out = getOutput (" predictedActiveCells" );
250249 tm_->activateDendrites ();
251250 tm_->getWinnerCells (out->getData ().getSDR ());
252- NTA_DEBUG << " winners " << *out << std::endl;
251+ NTA_DEBUG << " compute " << *out << std::endl;
253252
254253 out = getOutput (" anomaly" );
255254 Real32* buffer = reinterpret_cast <Real32*>(out->getData ().getBuffer ());
256255 buffer[0 ] = tm_->anomaly ; // only the first field is valid
257- NTA_DEBUG << " anomaly " << *out << std::endl;
256+ NTA_DEBUG << " compute " << *out << std::endl;
258257
259258 out = getOutput (" predictiveCells" );
260259 out->getData ().getSDR () = tm_->getPredictiveCells ();
261- NTA_DEBUG << " predictive " << *out << std::endl;
260+ NTA_DEBUG << " compute " << *out << std::endl;
262261}
263262
264263
0 commit comments