% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kerasnip_spec_methods.R
\name{set_args.kerasnip_spec}
\alias{set_args.kerasnip_spec}
\title{set_args Method for kerasnip Spec Objects}
\usage{
\method{set_args}{kerasnip_spec}(object, ...)
}
\arguments{
\item{object}{A \code{kerasnip_spec} model specification.}

\item{...}{Named model arguments to update, passed to
\code{parsnip::set_args.model_spec()}.}
}
\value{
A \code{model_spec} object with the \code{kerasnip_spec} class and metadata
attributes re-attached.
}
\description{
S3 method for \code{set_args()} dispatched on \code{kerasnip_spec} objects.
\code{parsnip::set_args.model_spec()} calls \code{new_model_spec()}, which strips any
extra classes and attributes. This wrapper saves and re-attaches the
\code{kerasnip_layer_blocks} and \code{kerasnip_functional} metadata attributes (and
the \code{kerasnip_spec} class) after \code{NextMethod()} has done its work.
}
\keyword{internal}
