We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reopening from
Currently the adopted solutions (from community) using tf.
tf
import tensorflow as tf from tensorflow.python.profiler import model_analyzer, option_builder model = tf.keras.applications.Xception( weights='imagenet', input_shape=(150, 150, 3), include_top=False ) input_signature = [ tf.TensorSpec( shape=(1, *params.shape[1:]), dtype=params.dtype, name=params.name ) for params in model.inputs ] forward_graph = tf.function(model, input_signature).get_concrete_function().graph options = option_builder.ProfileOptionBuilder.float_operation() graph_info = model_analyzer.profile(forward_graph, options=options) flops = graph_info.total_float_ops // 2 flops # 1925897756
And using official facebookresearch,
The text was updated successfully, but these errors were encountered:
fchollet
qlzh727
No branches or pull requests
Reopening from
Currently the adopted solutions (from community) using
tf
.And using official facebookresearch,
The text was updated successfully, but these errors were encountered: