I found out, that in PyTorch 1.2, the default behavior is not to allow alias specifications, leading to a segfault.
This can be changed, but alias specifications are not allowed for third-party extensions as stated in the error message:
RuntimeError: node->kind().is_prim() || node->kind().is_aten() INTERNAL ASSERT FAILED at ..\torch\csrc\jit\passes\alias_analysis.cpp:392, please report a bug to PyTorch. The current code base should only have AliasAnalysisKind::FROM_SCHEMA for aten:: and prim:: ops but we found it for tp::broadcast_tensors. We want to open this up though. (analyzeImpl at ..\torch\csrc\jit\passes\alias_analysis.cpp:392)
(no backtrace available)
To get this error message, I passed an Options struct as a third (optional) argument to RegisterOperators.op(), i.e.:
"some_op(Tensor(a) t) -> Tensor(a)",