Skip to content

Commit

Permalink
example fixes/updates; redocument
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Oct 11, 2024
1 parent 59fcec4 commit 8db931e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion R/layers-normalization.R
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ function (object, layer, power_iterations = 1L, ...)
#'
#' # Examples
#' ```{r}
#' data <- op_reshape(1:6, newshape = c(2, 3))
#' data <- 1:6 |> op_array("float32") |> op_reshape(c(2, 3))
#' normalized_data <- layer_unit_normalization(data)
#' op_sum(normalized_data[1, ]^2)
#' ```
Expand Down
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ function (tensor)
#' # Examples
#' ```{r}
#' path_to_downloaded_file <- get_file(
#' "flower_photos",
#' origin = "https://storage.googleapis.com/download.tensorflow.org/example_images/flower_photos.tgz",
#' extract = TRUE
#' )
Expand Down
3 changes: 2 additions & 1 deletion man/get_file.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/layer_integer_lookup.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/layer_string_lookup.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/layer_tfsm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/layer_unit_normalization.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8db931e

Please sign in to comment.