Home
last modified time | relevance | path

Searched refs:FromProto (Results 1 – 25 of 91) sorted by relevance

1234

/external/tensorflow/tensorflow/core/framework/
Dvariant_tensor_data.cc24 FromProto(std::move(proto)); in VariantTensorData()
51 bool VariantTensorData::FromProto(VariantTensorDataProto proto) { in FromProto() function in tensorflow::VariantTensorData
57 if (!tmp.FromProto(tensor)) return false; in FromProto()
68 if (!tmp.FromProto(tensor)) return false; in FromConstProto()
89 if (status) FromProto(std::move(proto)); in ParseFromString()
Dresource_handle.cc25 FromProto(proto); in ResourceHandle()
43 void ResourceHandle::FromProto(const ResourceHandleProto& proto) { in FromProto() function in tensorflow::ResourceHandle
67 if (status) FromProto(proto); in ParseFromString()
101 ps[i].FromProto(proto); in DecodeResourceHandleList()
Dattr_value_util.cc55 bool success = tensor.FromProto(tp); in TensorProtoHash()
81 bool success = lhs_t.FromProto(lhs); in AreTensorProtosEqual()
85 success = rhs_t.FromProto(rhs); in AreTensorProtosEqual()
210 if (!t.FromProto(tensor_proto)) { in SummarizeTensor()
Dresource_handle.h86 void FromProto(const ResourceHandleProto& proto);
Dtensor_test.cc157 EXPECT_TRUE(t2.FromProto(proto)); in TestCopies()
165 EXPECT_TRUE(t2.FromProto(proto)); in TestCopies()
170 EXPECT_TRUE(t3.FromProto(proto)); in TestCopies()
320 EXPECT_TRUE(t2.FromProto(proto)); in TEST()
1193 ASSERT_FALSE(a.FromProto(&allocator, proto)); in TEST()
1205 ASSERT_FALSE(a.FromProto(&allocator, proto)); in TEST()
1217 ASSERT_FALSE(a.FromProto(&allocator, proto)); in TEST()
1566 ASSERT_TRUE(b.FromProto(p)); in BM_FromProto()
1583 ASSERT_TRUE(b.FromProto(p)); in BM_FromProtoCompressed()
1601 ASSERT_TRUE(b.FromProto(p)); in BM_FromProtoCompressedZero()
Dvariant_tensor_data.h83 bool FromProto(VariantTensorDataProto proto);
/external/llvm-project/clang/unittests/AST/
DASTImporterGenericRedeclTest.cpp239 auto *FromProto = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportDefinitionAfterImportedPrototype() local
241 ASSERT_FALSE(FromProto->isThisDeclarationADefinition()); in TypedTest_ImportDefinitionAfterImportedPrototype()
244 Decl *ImportedProto = Import(FromProto, Lang_CXX03); in TypedTest_ImportDefinitionAfterImportedPrototype()
262 auto *FromProto = LastDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedDefinition() local
264 ASSERT_FALSE(FromProto->isThisDeclarationADefinition()); in TypedTest_ImportPrototypeAfterImportedDefinition()
267 Decl *ImportedProto = Import(FromProto, Lang_CXX03); in TypedTest_ImportPrototypeAfterImportedDefinition()
330 auto *FromProto = in TypedTest_ImportDefinitionThenPrototype() local
333 ASSERT_FALSE(FromProto->isThisDeclarationADefinition()); in TypedTest_ImportDefinitionThenPrototype()
336 Decl *ImportedProto = Import(FromProto, Lang_CXX03); in TypedTest_ImportDefinitionThenPrototype()
354 auto *FromProto = in TypedTest_ImportPrototypeThenDefinition() local
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dunique_op_test.cc74 CHECK(input.FromProto(GetRandomInt32TensorProto(dim, max_int))); in BM_Unique_INT32()
98 input.FromProto(GetRandomInt32TensorProtoWithRepeat(dim, 200, max_int))); in BM_Unique_INT32_Repeat()
137 CHECK(input.FromProto(GetRandomStringsTensorProto(dim, kMaxStrLen))); in BM_Unique_STRING()
Dsummary_tensor_op_test.cc88 CHECK(string_content_tensor.FromProto(summary.value(0).tensor())); in TEST_F()
/external/tensorflow/tensorflow/core/debug/
Ddebug_io_utils_test.cc130 ASSERT_TRUE(a_prime.FromProto(event.summary().value(0).tensor())); in TEST_F()
181 ASSERT_TRUE(b_prime.FromProto(event.summary().value(0).tensor())); in TEST_F()
294 ASSERT_TRUE(a_prime.FromProto(event.summary().value(0).tensor())); in TEST_F()
439 ASSERT_TRUE(a_prime.FromProto(event.summary().value(0).tensor())); in TEST_F()
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DDescriptorDeclaration.cs109 … internal static DescriptorDeclaration FromProto(IDescriptor descriptor, Location location) => in FromProto() method in Google.Protobuf.Reflection.DescriptorDeclaration
/external/tensorflow/tensorflow/core/common_runtime/
Dsingle_threaded_cpu_device.cc65 if (!parsed.FromProto(cpu_allocator(), tensor_proto)) { in MakeTensorFromProto()
Dthreadpool_device.cc93 if (parsed.FromProto(allocator_, tensor_proto)) { in MakeTensorFromProto()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dtensor_coding.cc57 if (!tensor_.FromProto(allocator_, meta_.tensor())) { in InitFrom()
286 if (!parsed.FromProto(allocator_, meta_.tensor())) { in ParseSlow()
/external/tensorflow/tensorflow/core/tpu/
Dvirtual_device.cc84 if (!parsed.FromProto(allocator, tensor_proto)) { in MakeTensorFromProto()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Devaluation_utils.cc54 if (!parsed.FromProto(cpu_allocator(), tensor_proto)) { in MakeTensorFromProto()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dround_weights.cc54 if (!old_tensor.FromProto(old_const_node.attr().at("value").tensor())) { in RoundWeights()
Dsummarize_graph_main.cc133 tensor.FromProto(node.attr().at("value").tensor())) { in PrintStructure()
217 tensor.FromProto(node.attr().at("value").tensor())) { in SummarizeGraph()
Dquantize_weights.cc57 if (!old_tensor.FromProto(old_const_node.attr().at("value").tensor())) { in QuantizeWeights()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_tensor_coding_test.cc49 EXPECT_TRUE(result_tensor.FromProto(response.tensor())); in Validate()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dconst_op.cc120 OP_REQUIRES(ctx, tensor.FromProto(cpu_allocator(), proto_), in Compile()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dconvert_tensor.cc174 if (!t.FromProto(input_tensor)) in ConvertTensorProto()
378 if (!output_tensor->FromProto(tensor_proto)) { in ConvertToTensor()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_node.h228 void FromProto(const ExecProfile& exec) { in FromProto() function
313 FromProto(node, profile, id_to_string); in TFGraphNode()
435 void FromProto(const ProfileNode& node, const ProfileProto& profile, in FromProto() function
453 exec.FromProto(exec_pb.second); in FromProto()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compile_op_common.cc108 xla::HloSharding::FromProto(proto_arg.sharding())); in SetPerCoreArgShapes()
218 CHECK(tensor.FromProto( in BuildComputationArgumentDescriptions()
243 xla::HloSharding::FromProto(proto_arg.sharding())); in BuildComputationArgumentDescriptions()
264 xla::HloSharding::FromProto(proto_arg.sharding())); in GetShardingInfo()
/external/tensorflow/tensorflow/core/tpu/kernels/xla/
Dinfeed_op.cc55 xla::HloSharding::FromProto(*sharding)); in UpdateInfeedLayout()

1234