Home
last modified time | relevance | path

Searched refs:resource_op (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/compiler/jit/
Dresource_operation_safety_analysis.cc146 string ResourceOpToString(const ResourceOp& resource_op) { in ResourceOpToString() argument
148 resource_op.first, ": ", in ResourceOpToString()
149 XlaResourceOpInfo::XlaResourceOpKindToString(resource_op.second)); in ResourceOpToString()
178 for (ResourceOp resource_op : other) { in Add() local
179 Add(resource_op); in Add()
183 void Add(const ResourceOp& resource_op) { in Add() argument
185 if (!IsCopy() && Contains(resource_op)) { in Add()
191 impl_->insert(resource_op); in Add()
202 bool Contains(const ResourceOp& resource_op) const { in Contains()
203 return impl_ != nullptr && impl_->count(resource_op); in Contains()
/external/tensorflow/tensorflow/core/framework/
Dresource_op_kernel_test.cc107 std::unique_ptr<StubResourceOpKernel> resource_op( in CreateOp() local
109 EXPECT_TRUE(resource_op != nullptr); in CreateOp()
110 if (resource_op != nullptr) { in CreateOp()
113 return resource_op; in CreateOp()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dinitialize_variables.cc79 auto resource_op = in InitializeVariable() local
84 resource_op, value_op); in InitializeVariable()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dtpu_merge_variables_with_execute.cc158 if (auto* resource_op = resource.getDefiningOp()) { in BuildVariableAccessInfo() local
159 auto resource_attr = resource_op->getAttr(kDeviceAttr); in BuildVariableAccessInfo()