load tf lazily to speed up load time
This commit is contained in:
parent
c82716b535
commit
ac374087b3
@ -1,5 +1,11 @@
|
|||||||
# TODO: load backends lazily
|
|
||||||
|
|
||||||
include("tensorflow/tensorflow.jl")
|
|
||||||
using .TF
|
|
||||||
export tf
|
export tf
|
||||||
|
|
||||||
|
function loadtf()
|
||||||
|
isdefined(Flux, :TF) && return
|
||||||
|
@eval include(joinpath(dirname($@__FILE__), "tensorflow/tensorflow.jl"))
|
||||||
|
end
|
||||||
|
|
||||||
|
function tf(args...)
|
||||||
|
loadtf()
|
||||||
|
TF.tf(args...)
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user