88namespace torch {
99namespace lazy {
1010
11- class OpKindWrapper {
11+ class TORCH_API OpKindWrapper {
1212 public:
1313 explicit OpKindWrapper (const char * name) : name_(name) {}
1414
@@ -31,25 +31,28 @@ class OpKindWrapper {
3131 mutable std::once_flag once_;
3232};
3333
34- // TODO: some ops may be obsolete
35- extern const OpKindWrapper ltc_all_to_all;
36- extern const OpKindWrapper ltc_cast;
37- extern const OpKindWrapper ltc_collective_permute;
38- extern const OpKindWrapper ltc_cross_replica_sum;
39- extern const OpKindWrapper ltc_device_data;
40- extern const OpKindWrapper ltc_get_dimensions_size;
41- extern const OpKindWrapper ltc_moving_average;
42- extern const OpKindWrapper ltc_nms;
43- extern const OpKindWrapper ltc_not_supported;
44- extern const OpKindWrapper ltc_replication_pad;
45- extern const OpKindWrapper ltc_replication_pad_backward;
46- extern const OpKindWrapper ltc_tensor_data;
34+ const OpKindWrapper ltc_all_to_all (" lazy_tensors::all_to_all" );
35+ const OpKindWrapper ltc_cast (" lazy_tensors::cast" );
36+ const OpKindWrapper ltc_collective_permute (" lazy_tensors::collective_permute" );
37+ const OpKindWrapper ltc_cross_replica_sum (" lazy_tensors::cross_replica_sum" );
38+ const OpKindWrapper ltc_device_data (" lazy_tensors::device_data" );
39+ const OpKindWrapper ltc_get_dimensions_size (
40+ " lazy_tensors::ltc_get_dimensions_size" );
41+ const OpKindWrapper ltc_moving_average (" lazy_tensors::moving_average" );
42+ const OpKindWrapper ltc_nms (" lazy_tensors::nms" );
43+ const OpKindWrapper ltc_not_supported (" lazy_tensors::not_supported" );
44+ const OpKindWrapper ltc_replication_pad (" lazy_tensors::replication_pad" );
45+ const OpKindWrapper ltc_replication_pad_backward (
46+ " lazy_tensors::replication_pad_backward" );
47+ const OpKindWrapper ltc_tensor_data (" lazy_tensors::tensor_data" );
4748
4849// For view ops
49- extern const OpKindWrapper ltc_as_strided_view_update;
50- extern const OpKindWrapper ltc_diagonal_view_update;
51- extern const OpKindWrapper ltc_narrow_view_update;
52- extern const OpKindWrapper ltc_select_view_update;
50+ const OpKindWrapper ltc_as_strided_view_update (
51+ " lazy_tensors::as_strided_view_update" );
52+ const OpKindWrapper ltc_diagonal_view_update (
53+ " lazy_tensors::diagonal_view_update" );
54+ const OpKindWrapper ltc_narrow_view_update (" lazy_tensors::narrow_view_update" );
55+ const OpKindWrapper ltc_select_view_update (" lazy_tensors::select_view_update" );
5356
5457} // namespace lazy
5558} // namespace torch
0 commit comments