docstr: This method overrides the method from the PiecewiseLinear class.
docstr_tok: ["This","method","overrides","the","method","from","the","PiecewiseLinear","class","."]
code: def compute_trend(self, t, k_t, m_t, meta_name_tensor_one_hot=None):
      """This method overrides the method from the PiecewiseLinear class."""
      # Computing trend value at time(t) for each batch sample.
      # trend_k_0 = trend_k_0(current_segment, sample metadata)
      trend_k_0 = torch.sum(
          meta_name_tensor_one_hot.unsqueeze(dim=0).unsqueeze(dim=-1)
          * self.trend_k0.unsqueeze(dim=1),
          dim=2,
      ).permute(1, 2, 0)
      # dimensions - batch_size, n_forecasts, quantiles
      return (trend_k_0 + k_t) * t.unsqueeze(dim=2) + m_t
  
imports: import numpy
  import torch
  import torch.nn
  from neuralprophet.components.trend import Trend
  from neuralprophet.utils_torch import init_parameter
label_desc: Use image node_id 4 for calling the LocalPiecewiseLinearTrend obj's underlying member method code with example usage: obj.compute_trend(t, k_t, m_t, meta_name_tensor_one_hot) and returns: unknown