Skip to content

Tensorflow Backend Questions #193

Answered by refraction-ray
wcqc asked this question in Q&A
Discussion options

You must be logged in to vote
K = tc.set_backend("tensorflow")
def f(param, weights):
    c = tc.Circuit(2)
    print(param)
    return 1.0

qmllayer = tc.keras.HardwareLayer(f, [2])
qmllayer(K.ones([2]))

what about this, HardwareLayer is a non jit version wrapper for keras layer, after you debug, you can switch back to KerasLayer

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@wcqc
Comment options

@refraction-ray
Comment options

Answer selected by wcqc
@wcqc
Comment options

@refraction-ray
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants