Home
last modified time | relevance | path

Searched refs:proto_ (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dconst_op.cc33 proto_ = *proto; in ConstOp()
35 ctx, ctx->output_type(0) == proto_.dtype(), in ConstOp()
37 DataTypeString(proto_.dtype()), ") and dtype (", in ConstOp()
39 OP_REQUIRES_OK(ctx, TensorShape::IsValidShape(proto_.tensor_shape())); in ConstOp()
43 TensorShape shape(proto_.tensor_shape()); in Compile()
50 switch (proto_.dtype()) { in Compile()
52 if (proto_.bool_val_size() == 1) { in Compile()
54 0, xla::Broadcast(xla::ConstantR0<bool>(b, proto_.bool_val(0)), in Compile()
60 if (proto_.float_val_size() == 1) { in Compile()
62 b, proto_.float_val(0)), in Compile()
[all …]
/external/pigweed/pw_protobuf/
Ddecoder.cc29 if (proto_.empty()) { in Next()
37 if (proto_.empty()) { in SkipField()
46 proto_ = proto_.subspan(bytes_to_skip); in SkipField()
47 return proto_.empty() ? Status::OutOfRange() : OkStatus(); in SkipField()
52 varint::Decode(proto_, &key); in FieldNumber()
115 size_t key_size = varint::Decode(proto_, &key); in FieldSize()
120 std::span<const std::byte> remainder = proto_.subspan(key_size); in FieldSize()
160 size_t bytes_read = varint::Decode(proto_, &key); in ConsumeKey()
171 proto_ = proto_.subspan(bytes_read); in ConsumeKey()
180 size_t bytes_read = varint::Decode(proto_, out); in ReadVarint()
[all …]
/external/protobuf/src/google/protobuf/
Dtext_format_unittest.cc99 unittest::TestAllTypes proto_; member in google::protobuf::text_format_unittest::TextFormatTest
122 unittest::TestAllExtensions proto_; member in google::protobuf::text_format_unittest::TextFormatExtensionsTest
130 TestUtil::SetAllFields(&proto_); in TEST_F()
131 EXPECT_EQ(proto_debug_string_, proto_.DebugString()); in TEST_F()
135 TestUtil::SetAllExtensions(&proto_); in TEST_F()
136 EXPECT_EQ(proto_debug_string_, proto_.DebugString()); in TEST_F()
140 proto_.set_optional_int32(1); in TEST_F()
141 proto_.set_optional_string("hello"); in TEST_F()
142 proto_.mutable_optional_nested_message()->set_bb(2); in TEST_F()
143 proto_.mutable_optional_foreign_message(); in TEST_F()
[all …]
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_computation.h33 : unique_id_(proto.id()), proto_(std::move(proto)) {} in XlaComputation()
48 const HloModuleProto& proto() const { return proto_; } in proto()
59 HloModuleProto* mutable_proto() { return &proto_; } in mutable_proto()
63 HloModuleProto proto_; variable
Dxla_computation.cc27 TF_RET_CHECK(proto_.has_host_program_shape()); in GetProgramShape()
28 return ProgramShape(proto_.host_program_shape()); in GetProgramShape()
36 *session->mutable_hlo()->mutable_hlo_module() = proto_; in Snapshot()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_node_show.cc49 proto_.set_parameters(node->parameters()); in ReInit()
52 GraphNodeProto* ShowNode::mutable_proto() { return &proto_; } in mutable_proto()
54 const GraphNodeProto& ShowNode::proto() const { return proto_; } in proto()
166 MultiGraphNodeProto* ShowMultiNode::mutable_proto() { return &proto_; } in mutable_proto()
168 const MultiGraphNodeProto& ShowMultiNode::proto() const { return proto_; } in proto()
Dtfprof_node_show.h64 GraphNodeProto proto_;
109 MultiGraphNodeProto proto_;
/external/pigweed/pw_protobuf/public/pw_protobuf/
Ddecoder.h48 : proto_(proto), previous_field_consumed_(true) {} in Decoder()
138 proto_ = proto; in Reset()
167 std::span<const std::byte> proto_; variable
/external/tensorflow/tensorflow/stream_executor/
Ddnn.h511 ConvolutionDescriptorProto ToProto() const { return proto_; } in ToProto()
550 proto_.set_group_count(group_count); in set_group_count()
554 proto_.set_convolution_mode(conv ? ConvolutionMode::CONVOLUTION in set_convolution_not_crosscorr()
559 proto_.set_name(name); in set_name()
583 int group_count() const { return proto_.group_count(); } in group_count()
586 return proto_.convolution_mode() == ConvolutionMode::CONVOLUTION; in convolution_not_crosscorr()
590 return AsInt64Slice(proto_.strides()); in strides()
594 return AsInt64Slice(proto_.dilations()); in dilations()
598 return AsInt64Slice(proto_.paddings()); in padding()
601 std::string name() const { return proto_.name(); } in name()
[all …]
Ddnn.cc487 proto_.mutable_paddings()->Resize(ndims, 0); in ConvolutionDescriptor()
488 proto_.mutable_strides()->Resize(ndims, 1); in ConvolutionDescriptor()
489 proto_.mutable_dilations()->Resize(ndims, 1); in ConvolutionDescriptor()
490 proto_.set_group_count(1); in ConvolutionDescriptor()
491 proto_.set_convolution_mode(ConvolutionMode::CROSS_CORRELATION); in ConvolutionDescriptor()
/external/webrtc/p2p/base/
Dturn_server.cc592 proto_(proto), in TurnServerConnection()
596 return src_ == c.src_ && dst_ == c.dst_ && proto_ == c.proto_; in operator ==()
600 return std::tie(src_, dst_, proto_) < std::tie(c.src_, c.dst_, c.proto_); in operator <()
607 << kProtos[proto_]; in ToString()
Dturn_server.h47 TurnServerConnection() : proto_(PROTO_UDP), socket_(NULL) {} in TurnServerConnection()
60 cricket::ProtocolType proto_; variable
/external/rust/crates/grpcio-sys/grpc/third_party/upb/benchmarks/
Dbenchmark.cc163 P* GetProto() { return &proto_; } in GetProto()
166 P proto_; member
/external/llvm-project/llvm/utils/unittest/googlemock/include/gmock/
Dgmock-actions.h832 explicit SetArgumentPointeeAction(const Proto& proto) : proto_(new Proto) {
833 proto_->CopyFrom(proto);
839 ::testing::get<N>(args)->CopyFrom(*proto_);
843 const internal::linked_ptr<Proto> proto_;
/external/fmtlib/test/gmock/
Dgmock.h1621 explicit SetArgumentPointeeAction(const Proto& proto) : proto_(new Proto) {
1622 proto_->CopyFrom(proto);
1628 ::std::tr1::get<N>(args)->CopyFrom(*proto_);
1632 const internal::linked_ptr<Proto> proto_;
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/gmock-1.8.0/gmock/
Dgmock.h1805 explicit SetArgumentPointeeAction(const Proto& proto) : proto_(new Proto) {
1806 proto_->CopyFrom(proto);
1812 ::testing::get<N>(args)->CopyFrom(*proto_);
1816 const internal::linked_ptr<Proto> proto_;