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

Class VarHandleOp

tensorflow/core/kernels/resource_variable_ops.h:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace tensorflow {
22
23class VarHandleOp : public OpKernel {
24 public:
25 explicit VarHandleOp(OpKernelConstruction* c);
26 void Compute(OpKernelContext* ctx) override;
27
28 private:
29 // Same fields as in ResourceHandleOp.
30 string container_;
31 string name_;
32 mutex mutex_;
33 Tensor resource_;
34 std::atomic<bool> initialized_{false};
35
36 DtypeAndPartialTensorShape dtype_and_shape_;
37};
38
39class ReadVariableOp : public OpKernel {
40 public:

Callers 15

TESTFunction · 0.50
MakeReadFunction · 0.50
MakeWriteFunction · 0.50
TESTFunction · 0.50
MakeWriteFunction · 0.50
MakeWriteFunction · 0.50
MakeReadFunction · 0.50
MakeWriteFunction · 0.50
MakeModifyFunction · 0.50
TESTFunction · 0.50
TEST_FFunction · 0.50

Calls

no outgoing calls

Tested by 15

TESTFunction · 0.40
MakeReadFunction · 0.40
MakeWriteFunction · 0.40
TESTFunction · 0.40
MakeWriteFunction · 0.40
MakeWriteFunction · 0.40
MakeReadFunction · 0.40
MakeWriteFunction · 0.40
MakeModifyFunction · 0.40
TESTFunction · 0.40
TEST_FFunction · 0.40