Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

WARNING:absl:Importing a function (__inference_sync_batch_normalization_13_layer_call_and_return_conditional_losses_20965) with ops with custom gradients. Will likely fail if a gradient is requested. #195

Open
aynesss opened this issue Feb 15, 2022 · 0 comments

Comments

@aynesss
Copy link

aynesss commented Feb 15, 2022

TF2.4. Here is what I write to begin finetuning:

target_model_path = "gs://simclr-checkpoints-tf2/simclrv2/pretrained/r50_2x_sk1/saved_model" 
saved_model = tf.keras.models.load_model(target_model_path)
saved_model.model.save_weights('./weights.h5')
simclr_model.load_weights('./weights.h5', by_name=True, skip_mismatch=True)

But I found many lines 👍

WARNING:absl:Importing a function (__inference_sync_batch_normalization_57_layer_call_and_return_conditional_losses_47179) with ops with custom gradients. Will likely fail if a gradient is requested.
WARNING:absl:Importing a function (__inference_sync_batch_normalization_21_layer_call_and_return_conditional_losses_22737) with ops with custom gradients. Will likely fail if a gradient is requested.
WARNING:absl:Importing a function (__inference_sync_batch_normalization_21_layer_call_and_return_conditional_losses_22737) with ops with custom gradients. Will likely fail if a gradient is requested.
WARNING:absl:Importing a function (__inference_sync_batch_normalization_21_layer_call_and_return_conditional_losses_22737) with ops with custom gradients. Will likely fail if a gradient is requested.
WARNING:absl:Importing a function (__inference_sync_batch_normalization_13_layer_call_and_return_conditional_losses_20965) with ops with custom gradients. Will likely fail if a gradient is requested.
WARNING:absl:Importing a function (__inference_sync_batch_normalization_13_layer_call_and_return_conditional_losses_20965) with ops with custom gradients. Will likely fail if a gradient is requested.
WARNING:absl:Importing a function (__inference_sync_batch_normalization_13_layer_call_and_return_conditional_losses_20965) with ops with custom gradients. Will likely fail if a gradient is requested.

I can't understand the reason?

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

No branches or pull requests

1 participant