/
reexports.R
124 lines (99 loc) · 2.54 KB
/
reexports.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#' Pipe operator
#'
#' See \code{\link[magrittr]{\%>\%}} for more details.
#'
#' @name %>%
#' @rdname pipe
#' @keywords internal
#' @returns Most commonly, the result of calling the right hand side with the
#' left hand side as an argument: `rhs(lhs)`. See the magritter vignette for
#' other, more advanced, usages.
#' @export
#' @export
#' @importFrom magrittr %<>% %>%
#' @usage lhs \%>\% rhs
NULL
#' @export
magrittr::`%<>%`
#' Assign values to names
#'
#' See \code{\link[zeallot]{\%<-\%}} for more details.
#'
#' @name %<-%
#' @rdname multi-assign
#' @keywords internal
#' @returns The right-hand-side argument, `value`, invisibly. This called
#' primarily for it's side-effect of assigning symbols in the current frame.
#' @export
#' @importFrom zeallot %<-%
#' @usage x \%<-\% value
NULL
#' @importFrom reticulate use_python
#' @export
reticulate::use_python
#' @importFrom reticulate use_virtualenv
#' @export
reticulate::use_virtualenv
#' @importFrom reticulate array_reshape
#' @export
reticulate::array_reshape
#' @importFrom reticulate np_array
#' @export
reticulate::np_array
#' @importFrom reticulate tuple
#' @export
reticulate::tuple
#' @export
reticulate::iter_next
#' @export
reticulate::iterate
#' @export
reticulate::as_iterator
#' @importFrom tensorflow tensorboard
#' @export
tensorflow::tensorboard
#' @importFrom tensorflow export_savedmodel
#' @export
tensorflow::export_savedmodel
#' @importFrom tensorflow as_tensor
#' @export
tensorflow::as_tensor
#' @importFrom tensorflow all_dims
#' @export
tensorflow::all_dims
#' @importFrom tfruns flags
#' @export
tfruns::flags
#' @importFrom tfruns flag_numeric
#' @export
tfruns::flag_numeric
#' @importFrom tfruns flag_integer
#' @export
tfruns::flag_integer
#' @importFrom tfruns flag_string
#' @export
tfruns::flag_string
#' @importFrom tfruns flag_boolean
#' @export
tfruns::flag_boolean
#' @importFrom tfruns run_dir
#' @export
tfruns::run_dir
#' @importFrom generics fit
#' @export
generics::fit
#' @importFrom generics compile
#' @export
generics::compile
# ' @importFrom generics evaluate
# ' @export
# generics::evaluate
## generics::evaluate() has a different signature from tensorflow::evaluate()
## evaluate(x, ...) vs evaluate(object, ...)
## We obviously can't dispatch on `x` in the evaluate() method keras uses, since
## thats a named argument for the dataset. Meaning we can't use
## generics::evaluate(). To drop the tensorflow dep, Seems like we'll have to
## eventually export a `keras3::evaluate()` generic.
#' @importFrom tensorflow evaluate
#' @export
tensorflow::evaluate