Skip to content

Commit

Permalink
Register default affine method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Apr 14, 2023
1 parent e09ffe4 commit 979ade5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ S3method(transform_adjust_hue,default)
S3method(transform_adjust_hue,torch_tensor)
S3method(transform_adjust_saturation,default)
S3method(transform_adjust_saturation,torch_tensor)
S3method(transform_affine,default)
S3method(transform_affine,torch_tensor)
S3method(transform_center_crop,default)
S3method(transform_color_jitter,default)
Expand Down
1 change: 1 addition & 0 deletions R/transforms-defaults.R
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ transform_rotate.default <- function(img, angle, resample = 0, expand = FALSE,
not_implemented_for_class(img)
}

#' @export
transform_affine.default <- function(img, angle, translate, scale, shear,
resample = 0, fillcolor = NULL) {
not_implemented_for_class(img)
Expand Down

0 comments on commit 979ade5

Please sign in to comment.