MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / LOCKS_EXCLUDED

Method LOCKS_EXCLUDED

tensorflow/core/kernels/mkl_conv_ops.cc:1088–1093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 8

AccessTensorMethod · 0.80
SetUsrMemMethod · 0.80
CheckReorderToOpMemMethod · 0.80
GetTensorBufferMethod · 0.80
NumElementsMethod · 0.45
getMethod · 0.45
get_sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected