| 732 | } |
| 733 | |
| 734 | int64 Model::NumElements(const string& name) { |
| 735 | tf_shared_lock l(mu_); |
| 736 | auto node = gtl::FindOrNull(lookup_table_, name); |
| 737 | if (node) { |
| 738 | return (*node)->num_elements(); |
| 739 | } |
| 740 | return 0; |
| 741 | } |
| 742 | |
| 743 | void Model::RecordStart(const string& name, bool stop_output) { |
| 744 | tf_shared_lock l(mu_); |