conversion from eigen to tf