Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/kernels/data/
Ddataset_utils.cc222 Tensor val_t = Tensor(DataTypeToEnum<T>::v(), TensorShape({})); in WriteScalarInternal() local
223 val_t.scalar<T>()() = val; in WriteScalarInternal()
224 return WriteTensorInternal(key, val_t); in WriteScalarInternal()
/external/tensorflow/tensorflow/core/framework/
Ddataset.h96 Tensor val_t = Tensor(DataTypeToEnum<T>::v(), TensorShape({})); in AddScalar() local
97 val_t.scalar<T>()() = val; in AddScalar()
98 AddTensorInternal(val_t, output); in AddScalar()
112 Tensor val_t = Tensor(DataTypeToEnum<T>::v(), in AddVector() local
115 val_t.flat<T>()(i) = val[i]; in AddVector()
117 AddTensorInternal(val_t, output); in AddVector()
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dtensor_bundle_test.cc559 Tensor val_t = Tensor(DT_INT64, TensorShape({})); in Encode() local
560 val_t.scalar<int64>()() = value_; in Encode()
561 *(data->add_tensors()) = val_t; in Encode()