Skip to content

Conversation

@dfalbel
Copy link
Member

@dfalbel dfalbel commented Apr 1, 2019

This is a WIP PR to a 1.13.1 CRAN release.

Tested against:

  • MacOS - TF 1.12.0
  • MacOS - TF 1.13.1
  • Windows - TF 1.12.0
  • Windows - TF - 1.13.1
  • Travis - TF 1.13.1

#' @export
Mod.tensorflow.tensor <- function(x) {
tf$abs(x)
Mod.tensorflow.tensor <- function(z) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious - why are these changes needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This deals with those CRAN warnings about methods consistency. It seems that the methods for complex numbers are defined in terms of z.

* checking S3 generic/method consistency ... WARNING
Arg:
  function(z)
Arg.tensorflow.tensor:
  function(x)

Conj:
  function(z)
Conj.tensorflow.tensor:
  function(x)

Im:
  function(z)
Im.tensorflow.tensor:
  function(x)

Mod:
  function(z)
Mod.tensorflow.tensor:
  function(x)

Re:
  function(z)
Re.tensorflow.tensor:
  function(x)

Adding appveyor
@dfalbel dfalbel changed the title [WIP] Tf 1.13 Tf 1.13 Apr 2, 2019
@dfalbel dfalbel marked this pull request as ready for review April 2, 2019 02:51
@javierluraschi javierluraschi merged commit 455aab4 into rstudio:master Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants