Research Article

SLAM: A Malware Detection Method Based on Sliding Local Attention Mechanism

Algorithm 1

Split tensor vector.
Input: tensor, index, step_size
Output: temp_tensor
function SPLIT_TENSOR (tensor, index, step_size)
  construct a Lambda expression according to keras
  Initialize temp_tensor
  temp_tensor = cut tensor according to its index from index to index + step_size
  return temp_tensor
end function