Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this two block don't define in the block.py and don't support float64 when net = tf_slim.batch_norm(net, is_training=is_training) #35

Open
davidxiaozhi opened this issue Mar 5, 2021 · 2 comments

Comments

@davidxiaozhi
Copy link

blocks_to_use: "CIFAR_NASA_REDUCTION"
blocks_to_use: "CIFAR_NASA"

this two block don't define in the block.py

@davidxiaozhi davidxiaozhi changed the title this two block don't define in the block.py this two block don't define in the block.py and don't support float64 when net = tf_slim.batch_norm(net, is_training=is_training) Mar 8, 2021
@davidxiaozhi
Copy link
Author

davidxiaozhi commented Mar 8, 2021

When setting tf.keras.backend. Set floatx('float64') when training based on images, since the image is float64

 if self._apply_batch_norm:
      net = tf_slim.batch_norm(net, is_training=is_training) # don't support float64 
      # net = tf_slim.batch_norm(net, is_training=is_training, fused=False) #support float64 

There is another way to cast float32 via type casting, but this also doesn't work very well. We recommend modifying block.py to provide a flexible API

@alexgoft
Copy link

@davidxiaozhi have you found a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants