code: def _sensoryComputeInferenceMode(self, anchorInput):
      
      if len(anchorInput) == 0:
        return
  
      overlaps = self.connections.computeActivity(anchorInput,
                                                  self.connectedPermanence)
      activeSegments = np.where(overlaps >= self.activationThreshold)[0]
  
      sensorySupportedCells = np.unique(
        self.connections.mapSegmentsToCells(activeSegments))
  
      self.bumpPhases = self.cellPhases[:,sensorySupportedCells]
      self._computeActiveCells()
      self.activeSegments = activeSegments
      self.sensoryAssociatedCells = sensorySupportedCells
docs: Infer the location from sensory input. Activate any cells with enough active
      synapses to this sensory input. Deactivate all other cells.
  
      @param anchorInput (numpy array)
      A sensory input. This will often come from a feature-location pair layer.