Comments (3)
Hi, thanks for the interest. We don't directly expose the internal activations of the network via the TF-Hub interface, but you can do this in an adhoc way via get_tensor_by_name
.
You might find these other threads helpful, which also discuss how to retrieve internal activations from TF-Hub modules.
tensorflow/hub#290
tensorflow/hub#396
For figuring out the names of each Tensor, I would use some combination of (1) inspecting the names of Tensors and Variables and (2) checking op.inputs
and op.outputs
.
As a final helpful tip, the model is also divided into Variable scopes based on each ResNet "block" and then "layers" within each block (the same way the architecture is described in https://arxiv.org/abs/1605.07146), so if e.g. you're trying to retrieve the activation after each residual block, this should basically involve changing a single number e.g. '/long/variable/scope/path/resnet_block_1/MatMul:0' to '/long/variable/scope/path/resnet_block_2/MatMul:0'
from deepmind-research.
Closing this issue, feel free to reopen it if you have further questions.
from deepmind-research.
@diegolascasas Are there any plans to improve the interface of TF Hub to facilitate getting outputs of intermediate layers? TF Hub seems like a great resource (lots of pre-trained models) but without being able to interface intermediate layers the applications are severely limited (e.g., I cannot easily build a custom model). I'm currently using tf.keras.applications -- I would like to use some of the architectures in TF Hub in the same way.
from deepmind-research.
Related Issues (20)
- Question regarding training speed
- Nowcasting – Question regarding the Dataset
- Geometry optimisation with DM21 in PySCF?
- RL Unplugged - DM Lab colab broken
- [MeshGraphNets] cuda_blas.cc:428, failed to run cuBLAS routine: CUBLAS_STATUS_EXECUTION_FAILED HOT 4
- [RL Unplugged] - Trained policies for finger_turn_hard do not match the datasets
- linear evaluation
- Code and data for A data-driven approach to learning to control computers HOT 1
- SOSCF with dm21 in pySCF HOT 4
- Input file for the charge delocalization
- Invalid open-source Kinetics dataset url.
- stochdepth_rate in NFNets HOT 1
- 'curl: (77) error setting certificate verify locations' error message when trying to download Basenji2 training data HOT 2
- Invalid download for wikigraph HOT 1
- /dev/shm/tmpk7uinr_c FileNotFoundError
- enformer SEQUENCE_LENGTH
- Request for dataset access for paper replication HOT 2
- About remesher of MeshGraphNets ?
- metadata in learning_to_simulate HOT 3
- MeshGraphNets sphere_dynamic HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepmind-research.