| 1086 | // inside the function. |
| 1087 | inline bool IsFilterCacheEmpty(OpKernelContext* context) |
| 1088 | LOCKS_EXCLUDED(mu_) { |
| 1089 | tf_shared_lock lock(mu_); |
| 1090 | const Tensor& cached_filter_data_tensor = |
| 1091 | *cached_filter_data_ptensor_.AccessTensor(context); |
| 1092 | return (cached_filter_data_tensor.NumElements() == 0); |
| 1093 | } |
| 1094 | |
| 1095 | // Cache the converted filter in a persistent tensor. |
| 1096 | // Only one thread can execute this method at any given time. |
nothing calls this directly
no test coverage detected