Home
last modified time | relevance | path

Searched refs:to_tensor (Results 1 – 25 of 43) sorted by relevance

12

/external/tensorflow/tensorflow/core/distributed_runtime/
Dcollective_rma_distributed.cc40 const AllocatorAttributes& to_alloc_attr, Tensor* to_tensor, in RecvBufCall() argument
49 req_.set_num_bytes(to_tensor->TotalBytes()); in RecvBufCall()
50 req_.set_buf_ptr(reinterpret_cast<int64>(DMAHelper::base(to_tensor))); in RecvBufCall()
81 const AllocatorAttributes& to_alloc_attr, Tensor* to_tensor, in RecvFromPeer() argument
87 to_alloc_attr, to_tensor, client_locality, dev_to_dev_stream_index, in RecvFromPeer()
102 to_device_ctx, to_tensor, dev_to_dev_stream_index, in RecvFromPeer()
114 const int64 total_bytes = to_tensor->TotalBytes(); in RecvFromPeer()
118 to_tensor->TotalBytes())); in RecvFromPeer()
138 step_id_, "dynamic", to_tensor->dtype(), &to_tensor->shape()); in RecvFromPeer()
140 to_tensor->dtype(), to_tensor->shape()); in RecvFromPeer()
[all …]
Dcollective_rma_distributed.h43 const AllocatorAttributes& to_alloc_attr, Tensor* to_tensor,
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_to_tensor_op_test.py97 dt = rt.to_tensor()
341 dt = rt.to_tensor(default_value=default, shape=shape)
400 self.evaluate(rt.to_tensor(default_value=default, shape=shape))
405 rt_placeholder.to_tensor(default_value=default, shape=shape))
409 actual = input_data.to_tensor(
416 actual = input_data.to_tensor(
424 actual = input_data.to_tensor(
431 actual = input_data.to_tensor(
438 actual = input_data.to_tensor(shape=[4, 4])
460 actual = input_data.to_tensor(default_value=default_value)
[all …]
Dragged_squeeze_op_test.py54 self.assertAllEqual(ragged_conversion_ops.to_tensor(rt), dt)
114 self.assertAllEqual(ragged_conversion_ops.to_tensor(rt), dt)
169 self.assertAllEqual(ragged_conversion_ops.to_tensor(rt_s), dt_s)
Dragged_conversion_ops.py48 def to_tensor(rt_input, default_value=None, name=None): function
50 return rt_input.to_tensor(default_value, name)
57 return rt_input.to_tensor(default_value=default_value, shape=shape)
Dragged_string_ops.py768 to_tensor = False
771 to_tensor = True
792 dense_shape) if to_tensor else output
823 dense_shape) if to_tensor else output
Dragged_one_hot_op_test.py194 self.assertAllEqual(result.to_tensor(), expected)
Dragged_gather_op_test.py387 actual = actual.to_tensor()
/external/tensorflow/tensorflow/compiler/xla/experimental/xla_sharding/
Dxla_sharding.py234 def copy_sharding(from_tensor, to_tensor, use_sharding_op=False): argument
247 return to_tensor
250 to_tensor = tf2xla.sharding(to_tensor, sharding=sharding)
253 to_tensor.op._set_attr('_XlaSharding', attr_value)
254 return to_tensor
/external/tensorflow/tensorflow/core/common_runtime/
Dcollective_rma_local.cc29 const AllocatorAttributes& to_alloc_attr, Tensor* to_tensor, in RecvFromPeer() argument
48 auto consumer_callback = [to_tensor, to_device_ctx, to_device, to_alloc_attr, in RecvFromPeer()
65 int64 recv_bytes = to_tensor->TotalBytes(); in RecvFromPeer()
74 to_tensor, // dst Tensor* in RecvFromPeer()
Dcollective_rma_local.h43 const AllocatorAttributes& to_alloc_attr, Tensor* to_tensor,
Dgraph_execution_state.cc577 tensor_connection.to_tensor(), "\"."); in PruneGraph()
582 tensor_connection.to_tensor(), in PruneGraph()
587 &tensor_connection.to_tensor(), {from_node, from_id.second})); in PruneGraph()
690 feeds.emplace_back(ParseTensorName(tensor_connection.to_tensor())); in OptimizeGraph()
Dpermuter_test.cc78 const AllocatorAttributes& to_alloc_attr, Tensor* to_tensor, in RecvFromPeer() argument
85 to_alloc_attr, to_tensor, client_locality, stream_index, in RecvFromPeer()
Dring_gatherer_test.cc70 const AllocatorAttributes& to_alloc_attr, Tensor* to_tensor, in RecvFromPeer() argument
78 to_alloc_attr, to_tensor, client_locality, dev_to_dev_stream_index, in RecvFromPeer()
/external/tflite-support/tensorflow_lite_support/custom_ops/python/
Dragged_tensor_to_tensor_test.py33 return ragged_tensor.to_tensor()
/external/tensorflow/tensorflow/python/keras/layers/
Dpooling_test.py65 dense_data = ragged_data.to_tensor()
85 dense_data = ragged_data.to_tensor()
Dmerge_test.py241 dense_data = ragged_data.to_tensor()
247 out_ragged = convert_ragged_tensor_value(out_ragged).to_tensor()
/external/tensorflow/tensorflow/python/distribute/
Dinput_lib_type_spec_test.py352 "dense": ragged_tensor.to_tensor(),
413 "dense": ragged_tensor.to_tensor(),
475 "dense": ragged_tensor.to_tensor(),
/external/tflite-support/tensorflow_lite_support/custom_ops/kernel/
Dngrams_test.py112 input_tensor = tf.ragged.constant(test_case).to_tensor()
132 input_tensor = tf.ragged.constant(test_case).to_tensor()
Dwhitespace_tokenizer_test.py54 return tokenizer.tokenize(test_case).to_tensor()
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dflat_map_test.py162 ragged_conversion_ops.to_tensor(x))
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.-ragged-tensor.pbtxt140 name: "to_tensor"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.-ragged-tensor.pbtxt140 name: "to_tensor"
/external/tensorflow/tensorflow/core/framework/
Dcollective.h268 Tensor* to_tensor,
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/
Dtext_vectorization.py567 dense_data = lookup_data.to_tensor(default_value=0)

12