Hello everyone,
I’m trying to convert some Python modules into their C++ counter part and for this I need to use Xtensor. However, I notcied upon including  both torch and xtensor, they have a conflic and thus I face the following error from libtorch side! :
Severity	Code	Description	Project	File	Line	Suppression State
Error	C3861	'lib': identifier not found	test	G:\cpp\...\libtorch\include\c10\util\variant.h	958	
Error	C2653	'lib': is not a class or namespace name	test	G:\cpp\...\libtorch\include\c10\util\variant.h	958	
Error	C2143	syntax error: missing ',' before '<'	test	G:\cpp\...\libtorch\include\c10\util\variant.h	958	
Error	C2653	'lib': is not a class or namespace name	test	G:\cpp\...\libtorch\include\c10\util\variant.h	982	
Error	C2061	syntax error: identifier 'type_pack_element_t'	test	G:\cpp\...\libtorch\include\c10\util\variant.h	982	
Error	C2059	syntax error: '>'	test	G:\cpp\...\libtorch\include\c10\util\variant.h	982	
Error	C7510	'array': use of dependent template name must be prefixed with 'template'	test	G:\cpp\...\libtorch\include\c10\util\variant.h	995	
Error	C2653	'lib': is not a class or namespace name	test	G:\cpp\...\libtorch\include\c10\util\variant.h	1033	
Error	C2061	syntax error: identifier 'enable_if_t'	test	G:\cpp\...\libtorch\include\c10\util\variant.h	1033	
Error	C2653	'lib': is not a class or namespace name	test	G:\cpp\...\libtorch\include\c10\util\variant.h	1034	
Error	C2065	'T': undeclared identifier	test	G:\cpp\...\libtorch\include\c10\util\variant.h	1037	
Error	C2065	'Ts': undeclared identifier	test	G:\cpp\...\libtorch\include\c10\util\variant.h	1037	
Error	C2631	'find_index_checked_impl': a class or enum cannot be defined in an alias template	test	G:\cpp\...\libtorch\include\c10\util\variant.h	1040	
Error	C2988	unrecognizable template declaration/definition	test	G:\cpp\port\LibtorchPort\LibtorchPort\LibtorchPort.cpp	1	
Error	C2059	syntax error: 'template'	test	G:\cpp\port\LibtorchPort\LibtorchPort\LibtorchPort.cpp	1	
Error	C1903	unable to recover from previous error(s); stopping compilation	test	G:\cpp\port\LibtorchPort\LibtorchPort\LibtorchPort.cpp	1	


Whats the cause here and how can I fix this ?
Any help in this reagard is greatly apprecaited