nn_buffer function

Creates a nn_buffer

Creates a nn_buffer

Indicates that a tensor is a buffer in a nn_module

nn_buffer(x, persistent = TRUE)

Arguments

  • x: the tensor that will be converted to nn_buffer
  • persistent: whether the buffer should be persistent or not.
  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2025-02-14