mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/69041 `TH_CONCAT_{N}` is still being used by THP so I've moved that into it's own header but all the compiled code is gone. Test Plan: Imported from OSS Reviewed By: anjali411 Differential Revision: D32872477 Pulled By: ngimel fbshipit-source-id: 06c82d8f96dbcee0715be407c61dfc7d7e8be47a
20 lines
667 B
C
20 lines
667 B
C
#pragma once
|
|
|
|
#define TH_CONCAT_STRING_2(x,y) TH_CONCAT_STRING_2_EXPAND(x,y)
|
|
#define TH_CONCAT_STRING_2_EXPAND(x,y) #x #y
|
|
|
|
#define TH_CONCAT_STRING_3(x,y,z) TH_CONCAT_STRING_3_EXPAND(x,y,z)
|
|
#define TH_CONCAT_STRING_3_EXPAND(x,y,z) #x #y #z
|
|
|
|
#define TH_CONCAT_STRING_4(x,y,z,w) TH_CONCAT_STRING_4_EXPAND(x,y,z,w)
|
|
#define TH_CONCAT_STRING_4_EXPAND(x,y,z,w) #x #y #z #w
|
|
|
|
#define TH_CONCAT_2(x,y) TH_CONCAT_2_EXPAND(x,y)
|
|
#define TH_CONCAT_2_EXPAND(x,y) x ## y
|
|
|
|
#define TH_CONCAT_3(x,y,z) TH_CONCAT_3_EXPAND(x,y,z)
|
|
#define TH_CONCAT_3_EXPAND(x,y,z) x ## y ## z
|
|
|
|
#define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
|
|
#define TH_CONCAT_4(x,y,z,w) TH_CONCAT_4_EXPAND(x,y,z,w)
|