Skip to content

How to use xla_bridge_get_backend().live_arrays() #18337

Answered by jakevdp
ToshiyukiBandai asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure how you're executing your code, but note that Jupyter notebooks store references to all cell outputs. So the fact that you wrote things like x[-1] # refers to alpha makes me think that you're displaying this in a cell output, which would maintain a reference to it. You can use print(x[-1]) to avoid this.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ToshiyukiBandai
Comment options

@jakevdp
Comment options

Answer selected by ToshiyukiBandai
@ToshiyukiBandai
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
3 participants