Skip to content

Tag: tensorflow

Pycharm Can’t install TensorFlow

I cannot install tensorflow in pycharm on windows 10, though I have tried many different things: went to settings > project interpreter and tried clicking the green plus button to install it, gave me the error: non-zero exit code (1) and told me to try installing via pip in the command line, which was succ…

How to convert Tensorflow dataset to 2D numpy array

I have a TensorFlow dataset which contains nearly 15000 multicolored images with 168*84 resolution and a label for each image. Its type and shape are like this: I need to use it to train my network. That’s why I need to pass it as a parameter to this function that I built my layers in: I tried to conver…

Save and load model optimizer state

I have a set of fairly complicated models that I am training and I am looking for a way to save and load the model optimizer states. The “trainer models” consist of different combinations of several other “weight models”, of which some have shared weights, some have frozen weights depe…

how to get covariance matrix in tensorflow?

How could I get covariance matrix in tensorflow? Like numpy.cov() in numpy. For example, I want to get covariance matrix of tensor A, now I have to use numpy instead Is there anyway to get cov by tensorflow instead of numpy? It is differnet from the problem how to compute covariance in tensorflow, where their…