tensorflow/core/runtime_fallback/kernel/kernel_fallback_kernels.cc
// Return an initialized scalar Tensor with the specified value.
Return an initialized scalar Tensor with the specified value.
Return an initialized scalar Tensor with the specified value .
static void TFDConstantTensor(tfrt::Argument<int32_t> value,
                              tfrt::Result<Tensor> tensor) {
  Tensor out(DT_INT32, TensorShape({}));
  out.flat<int32>()(0) = value.get();
  tensor.Emplace(out);
}
static void TFDConstantTensor ( tfrt :: Argument < int32_t > value , tfrt :: Result < Tensor > tensor ) { Tensor out ( DT_INT32 , TensorShape ( { } ) ) ; out . flat < int32 > ( ) ( 0 ) = value . get ( ) ; tensor . Emplace ( out ) ; }
Return an initialized scalar Tensor with the specified value.
Return an initialized scalar Tensor with the specified value .
// TODO(annarev): tensor.Emplace(value.get()) would be simpler but // it causes a missing typeinfo error when using -fno-rtti. Investigate // if we can make it work with no-rtti.