Home
last modified time | relevance | path

Searched refs:in_bytes (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/python/kernel_tests/
Ddecode_raw_op_test.py35 in_bytes = array_ops.placeholder(dtypes.string, shape=[2])
36 decode = parsing_ops.decode_raw(in_bytes, out_type=dtypes.uint8)
39 result = decode.eval(feed_dict={in_bytes: ["A", "a"]})
42 result = decode.eval(feed_dict={in_bytes: ["wer", "XYZ"]})
49 decode.eval(feed_dict={in_bytes: ["short", "longer"]})
54 in_bytes = array_ops.placeholder(dtypes.string, shape=[None])
55 decode = parsing_ops.decode_raw(in_bytes, out_type=dtypes.int16)
58 result = decode.eval(feed_dict={in_bytes: ["AaBC"]})
65 decode.eval(feed_dict={in_bytes: ["123", "456"]})
70 in_bytes = array_ops.placeholder(dtypes.string, shape=[None])
[all …]
Ddecode_compressed_op_test.py50 in_bytes = array_ops.placeholder(dtypes.string, shape=[2])
52 in_bytes, compression_type=compression_type)
56 feed_dict={in_bytes: [self._compress(b"AaAA", compression_type),
64 in_bytes = array_ops.placeholder(dtypes.string, shape=[None])
66 in_bytes, compression_type=compression_type)
70 feed_dict={in_bytes: [self._compress(b"AaBC", compression_type)]})
/external/curl/src/
Dtool_convert.c53 size_t res, in_bytes, out_bytes; in convert_to_network() local
65 in_bytes = out_bytes = length; in convert_to_network()
66 res = iconv(outbound_cd, &input_ptr, &in_bytes, in convert_to_network()
68 if((res == (size_t)-1) || (in_bytes != 0)) { in convert_to_network()
83 size_t res, in_bytes, out_bytes; in convert_from_network() local
95 in_bytes = out_bytes = length; in convert_from_network()
96 res = iconv(inbound_cd, &input_ptr, &in_bytes, in convert_from_network()
98 if((res == (size_t)-1) || (in_bytes != 0)) { in convert_from_network()
/external/curl/lib/
Dnon-ascii.c106 size_t in_bytes, out_bytes, rc; in Curl_convert_to_network() local
125 in_bytes = out_bytes = length; in Curl_convert_to_network()
126 rc = iconv(*cd, &input_ptr, &in_bytes, in Curl_convert_to_network()
130 if((rc == ICONV_ERROR) || (in_bytes != 0)) { in Curl_convert_to_network()
172 size_t in_bytes, out_bytes, rc; in Curl_convert_from_network() local
191 in_bytes = out_bytes = length; in Curl_convert_from_network()
192 rc = iconv(*cd, &input_ptr, &in_bytes, in Curl_convert_from_network()
196 if((rc == ICONV_ERROR) || (in_bytes != 0)) { in Curl_convert_from_network()
239 size_t in_bytes, out_bytes, rc; in Curl_convert_from_utf8() local
258 in_bytes = out_bytes = length; in Curl_convert_from_utf8()
[all …]
/external/u-boot/drivers/misc/
Dcros_ec_spi.c21 int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes) in cros_ec_spi_packet() argument
51 rv = spi_xfer(slave, in_bytes * 8, NULL, dev->din, 0); in cros_ec_spi_packet()
61 return in_bytes; in cros_ec_spi_packet()
85 int in_bytes = din_len + 4; /* status, length, checksum, trailer */ in cros_ec_spi_command() local
101 if (in_bytes > sizeof(dev->din)) { in cros_ec_spi_command()
115 memset(dev->din, '\0', in_bytes); in cros_ec_spi_command()
138 rv = spi_xfer(slave, max(len, in_bytes) * 8, out, p, in cros_ec_spi_command()
Dcros_ec_i2c.c51 static int cros_ec_i2c_packet(struct udevice *udev, int out_bytes, int in_bytes) in cros_ec_i2c_packet() argument
76 i2c_msg[1].len = in_bytes + 2; in cros_ec_i2c_packet()
104 memmove(dev->din, &ec_response_i2c->ec_response, in_bytes); in cros_ec_i2c_packet()
106 return in_bytes; in cros_ec_i2c_packet()
119 int in_bytes = din_len + 3; in cros_ec_i2c_command() local
133 if (in_bytes > sizeof(dev->din)) { in cros_ec_i2c_command()
178 i2c_msg[1].len = in_bytes; in cros_ec_i2c_command()
Dcros_ec.c128 int in_bytes = din_len + sizeof(struct ec_host_response); in prepare_proto3_response_buffer() local
131 if (in_bytes > (int)sizeof(dev->din)) { in prepare_proto3_response_buffer()
137 return in_bytes; in prepare_proto3_response_buffer()
156 int in_bytes; in handle_proto3_response() local
180 in_bytes = sizeof(*rs) + rs->data_len; in handle_proto3_response()
183 csum = cros_ec_calc_checksum(dev->din, in_bytes); in handle_proto3_response()
206 int out_bytes, in_bytes; in send_command_proto3() local
216 in_bytes = prepare_proto3_response_buffer(dev, din_len); in send_command_proto3()
217 if (in_bytes < 0) in send_command_proto3()
218 return in_bytes; in send_command_proto3()
[all …]
/external/grpc-grpc/test/core/tsi/alts/handshaker/
Dalts_handshaker_service_api_test.cc26 const char in_bytes[] = "HELLO GOOGLE!"; in main() local
40 grpc_gcp_handshaker_req_set_in_bytes(req, in_bytes, strlen(in_bytes))); in main()
90 grpc_gcp_handshaker_req_set_in_bytes(req, in_bytes, strlen(in_bytes))); in main()
142 GPR_ASSERT(!grpc_gcp_handshaker_req_set_in_bytes(nullptr, in_bytes, in main()
143 strlen(in_bytes))); in main()
Dalts_handshaker_client_test.cc249 grpc_slice* in_bytes = static_cast<grpc_slice*>(req->next.in_bytes.arg); in check_next_success() local
250 GPR_ASSERT(in_bytes != nullptr); in check_next_success()
251 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(*in_bytes), in check_next_success()
253 GRPC_SLICE_LENGTH(*in_bytes)) == 0); in check_next_success()
Dalts_handshaker_service_api_test_lib.cc56 req->server_start.in_bytes.funcs.decode = decode_string_or_bytes_cb; in grpc_gcp_handshaker_decoded_req_create()
312 req->next.in_bytes.funcs.decode = decode_string_or_bytes_cb; in grpc_gcp_handshaker_req_decode()
545 result &= slice_equals(static_cast<grpc_slice*>(l_req->in_bytes.arg), in grpc_gcp_handshaker_server_start_req_equals()
546 static_cast<grpc_slice*>(r_req->in_bytes.arg)); in grpc_gcp_handshaker_server_start_req_equals()
570 return slice_equals(static_cast<grpc_slice*>(l_req->next.in_bytes.arg), in grpc_gcp_handshaker_req_equals()
571 static_cast<grpc_slice*>(r_req->next.in_bytes.arg)); in grpc_gcp_handshaker_req_equals()
/external/eigen/unsupported/test/
Dcxx11_tensor_argmax_cuda.cu34 std::size_t in_bytes = in.size() * sizeof(double); in test_cuda_simple_argmax() local
40 cudaMalloc((void**)(&d_in), in_bytes); in test_cuda_simple_argmax()
44 cudaMemcpy(d_in, in.data(), in_bytes, cudaMemcpyHostToDevice); in test_cuda_simple_argmax()
98 std::size_t in_bytes = tensor.size() * sizeof(float); in test_cuda_argmax_dim() local
103 cudaMalloc((void**)(&d_in), in_bytes); in test_cuda_argmax_dim()
106 cudaMemcpy(d_in, tensor.data(), in_bytes, cudaMemcpyHostToDevice); in test_cuda_argmax_dim()
140 cudaMemcpy(d_in, tensor.data(), in_bytes, cudaMemcpyHostToDevice); in test_cuda_argmax_dim()
187 std::size_t in_bytes = tensor.size() * sizeof(float); in test_cuda_argmin_dim() local
192 cudaMalloc((void**)(&d_in), in_bytes); in test_cuda_argmin_dim()
195 cudaMemcpy(d_in, tensor.data(), in_bytes, cudaMemcpyHostToDevice); in test_cuda_argmin_dim()
[all …]
Dcxx11_tensor_complex_cuda.cu88 std::size_t in_bytes = in.size() * sizeof(std::complex<float>); in test_cuda_sum_reductions() local
90 …std::complex<float>* gpu_in_ptr = static_cast<std::complex<float>*>(gpu_device.allocate(in_bytes)); in test_cuda_sum_reductions()
92 gpu_device.memcpyHostToDevice(gpu_in_ptr, in.data(), in_bytes); in test_cuda_sum_reductions()
125 std::size_t in_bytes = in.size() * sizeof(std::complex<float>); in test_cuda_product_reductions() local
127 …std::complex<float>* gpu_in_ptr = static_cast<std::complex<float>*>(gpu_device.allocate(in_bytes)); in test_cuda_product_reductions()
129 gpu_device.memcpyHostToDevice(gpu_in_ptr, in.data(), in_bytes); in test_cuda_product_reductions()
Dcxx11_tensor_reduction_cuda.cu37 std::size_t in_bytes = in.size() * sizeof(Type); in test_full_reductions() local
39 Type* gpu_in_ptr = static_cast<Type*>(gpu_device.allocate(in_bytes)); in test_full_reductions()
41 gpu_device.memcpyHostToDevice(gpu_in_ptr, in.data(), in_bytes); in test_full_reductions()
/external/u-boot/drivers/spi/
Dexynos_spi.c102 uint out_bytes, in_bytes; in spi_rx_tx() local
108 out_bytes = in_bytes = todo; in spi_rx_tx()
132 toread = in_bytes; in spi_rx_tx()
134 while (in_bytes) { in spi_rx_tx()
173 in_bytes -= step; in spi_rx_tx()
186 out_bytes = in_bytes; in spi_rx_tx()
187 toread = in_bytes; in spi_rx_tx()
193 in_bytes, out_bytes); in spi_rx_tx()
/external/u-boot/arch/arm/mach-exynos/
Dspl_boot.c69 uint out_bytes, in_bytes; in spi_rx_tx() local
72 in_bytes = todo; in spi_rx_tx()
77 while (in_bytes) { in spi_rx_tx()
90 while (rx_lvl >= 4 && in_bytes) { in spi_rx_tx()
94 in_bytes -= 4; in spi_rx_tx()
/external/eigen/test/
Dcuda_common.h38 std::ptrdiff_t in_bytes = in.size() * sizeof(typename Input::Scalar); in run_on_cuda() local
41 cudaMalloc((void**)(&d_in), in_bytes); in run_on_cuda()
44 cudaMemcpy(d_in, in.data(), in_bytes, cudaMemcpyHostToDevice); in run_on_cuda()
57 …cudaMemcpy(const_cast<typename Input::Scalar*>(in.data()), d_in, in_bytes, cudaMemcpyDeviceToHo… in run_on_cuda()
/external/grpc-grpc/test/core/tsi/alts/fake_handshaker/
Dfake_handshaker_server.cc154 if (request.in_bytes().empty()) { in ProcessServerStart()
160 if (request.in_bytes() == kClientInitFrame) { in ProcessServerStart()
182 if (request.in_bytes() != kServerFrame) { in ProcessNext()
192 if (request.in_bytes() != kClientInitFrame) { in ProcessNext()
201 if (request.in_bytes().substr(0, strlen(kClientFinishFrame)) != in ProcessNext()
Dhandshaker.proto124 bytes in_bytes = 3; field
142 bytes in_bytes = 1; field
195 // empty if no out_frames have to be sent to the peer or if in_bytes in the
201 // Number of bytes in the in_bytes consumed by the handshaker. It is possible
202 // that part of in_bytes in HandshakerReq was unrelated to the handshake
/external/grpc-grpc/src/core/tsi/alts/handshaker/
Dalts_handshaker_service_api.cc95 destroy_slice(static_cast<grpc_slice*>(req->server_start.in_bytes.arg)); in grpc_gcp_handshaker_req_destroy()
98 destroy_slice(static_cast<grpc_slice*>(req->next.in_bytes.arg)); in grpc_gcp_handshaker_req_destroy()
333 const char* in_bytes, size_t size) { in grpc_gcp_handshaker_req_set_in_bytes() argument
334 if (req == nullptr || in_bytes == nullptr || req->has_client_start) { in grpc_gcp_handshaker_req_set_in_bytes()
340 grpc_slice* slice = create_slice(in_bytes, size); in grpc_gcp_handshaker_req_set_in_bytes()
342 req->next.in_bytes.arg = slice; in grpc_gcp_handshaker_req_set_in_bytes()
343 req->next.in_bytes.funcs.encode = &encode_string_or_bytes_cb; in grpc_gcp_handshaker_req_set_in_bytes()
345 req->server_start.in_bytes.arg = slice; in grpc_gcp_handshaker_req_set_in_bytes()
346 req->server_start.in_bytes.funcs.encode = &encode_string_or_bytes_cb; in grpc_gcp_handshaker_req_set_in_bytes()
Dhandshaker.pb.c47 …PB_FIELD( 3, BYTES , OPTIONAL, CALLBACK, OTHER, grpc_gcp_StartServerHandshakeReq, in_bytes, han…
48 …NAL, STATIC , OTHER, grpc_gcp_StartServerHandshakeReq, local_endpoint, in_bytes, &grpc_gcp_Endpoi…
61 … 1, BYTES , OPTIONAL, CALLBACK, FIRST, grpc_gcp_NextHandshakeMessageReq, in_bytes, in_bytes, 0),
Dhandshaker.pb.h44 pb_callback_t in_bytes; member
126 pb_callback_t in_bytes; member
Dalts_handshaker_service_api.h227 const char* in_bytes, size_t size);
/external/u-boot/scripts/
Dcleanpatch129 $in_bytes = 0;
140 $in_bytes += length($line);
245 if ($in_bytes != $out_bytes) {
/external/grpc-grpc-java/alts/src/main/proto/grpc/gcp/
Dhandshaker.proto124 bytes in_bytes = 3; field
142 bytes in_bytes = 1; field
195 // empty if no out_frames have to be sent to the peer or if in_bytes in the
201 // Number of bytes in the in_bytes consumed by the handshaker. It is possible
202 // that part of in_bytes in HandshakerReq was unrelated to the handshake
/external/grpc-grpc/src/core/tsi/alts/handshaker/proto/
Dhandshaker.proto124 bytes in_bytes = 3; field
142 bytes in_bytes = 1; field
195 // empty if no out_frames have to be sent to the peer or if in_bytes in the
201 // Number of bytes in the in_bytes consumed by the handshaker. It is possible
202 // that part of in_bytes in HandshakerReq was unrelated to the handshake

12