Home
last modified time | relevance | path

Searched refs:val_t (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/core/framework/
Ddataset.h146 Tensor val_t = Tensor(DataTypeToEnum<T>::v(), TensorShape({})); in AddScalar() local
147 val_t.scalar<T>()() = val; in AddScalar()
148 AddTensorInternal(val_t, output); in AddScalar()
162 Tensor val_t = Tensor(DataTypeToEnum<T>::v(), in AddVector() local
165 val_t.flat<T>()(i) = val[i]; in AddVector()
167 AddTensorInternal(val_t, output); in AddVector()
175 Tensor val_t = Tensor(DataTypeToEnum<tstring>::v(), in AddVector() local
178 val_t.flat<tstring>()(i) = val[i]; in AddVector()
180 AddTensorInternal(val_t, output); in AddVector()
/external/tensorflow/tensorflow/core/kernels/data/
Ddataset_utils.cc410 Tensor val_t = Tensor(DataTypeToEnum<T>::v(), TensorShape({})); in WriteScalarInternal() local
411 val_t.scalar<T>()() = val; in WriteScalarInternal()
412 return WriteTensorInternal(name, key, val_t); in WriteScalarInternal()
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dtensor_bundle_test.cc803 Tensor val_t = Tensor(DT_INT64, TensorShape({})); in Encode() local
804 val_t.scalar<int64>()() = value_; in Encode()
805 *(data->add_tensors()) = val_t; in Encode()