File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
python/paddle/fluid/tests/custom_op Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -519,6 +519,7 @@ void RegisterOperatorWithMetaInfo(
519519 auto op_name = OpMetaInfoHelper::GetOpName (base_op_meta);
520520
521521 if (OpInfoMap::Instance ().Has (op_name)) {
522+ LOG (WARNING) << " Operator (" << op_name << " )has been registered." ;
522523 return ;
523524 }
524525
Original file line number Diff line number Diff line change @@ -132,7 +132,12 @@ def test_exception(self):
132132
133133 def test_load_multiple_module (self ):
134134 custom_module = load (
135- name = 'custom_conj_jit' , sources = ['custom_conj_op.cc' ])
135+ name = 'custom_conj_jit' ,
136+ sources = ['custom_conj_op.cc' ],
137+ extra_include_paths = paddle_includes , # add for Coverage CI
138+ extra_cxx_cflags = extra_cc_args , # test for cc flags
139+ extra_cuda_cflags = extra_nvcc_args , # test for nvcc flags
140+ verbose = True )
136141 custom_conj = custom_module .custom_conj
137142 self .assertIsNotNone (custom_conj )
138143
You can’t perform that action at this time.
0 commit comments