nn_buffer: Creates a nn_buffer

View source: R/nn.R

nn_bufferR Documentation

Creates a nn_buffer

Description

Indicates that a tensor is a buffer in a nn_module

Usage

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.


torch documentation built on June 7, 2023, 6:19 p.m.