infer shape in main thread, fix multi-thread bug (#4833)
* infer shape in main thread and fix multi-thread bug Signed-off-by:daquexian <daquexian566@gmail.com> * void -> Maybe<void> Signed-off-by:
daquexian <daquexian566@gmail.com> * rename op_infer_ctx_1/2 Signed-off-by:
daquexian <daquexian566@gmail.com> * fix comments Signed-off-by:
daquexian <daquexian566@gmail.com> * fix typo Signed-off-by:
daquexian <daquexian566@gmail.com> Co-authored-by:
Li Xinqi <lixinqi2010@gmail.com> Co-authored-by:
oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
Showing
- oneflow/core/eager/eager_blob_object.cpp 1 addition, 0 deletionsoneflow/core/eager/eager_blob_object.cpp
- oneflow/core/eager/eager_blob_object.h 5 additions, 0 deletionsoneflow/core/eager/eager_blob_object.h
- oneflow/core/eager/opkernel_instruction_type.cpp 6 additions, 21 deletionsoneflow/core/eager/opkernel_instruction_type.cpp
- oneflow/core/framework/op_interpreter/eager_mirrored_op_interpreter.cpp 10 additions, 1 deletion...ramework/op_interpreter/eager_mirrored_op_interpreter.cpp
- oneflow/core/framework/tensor_impl.cpp 3 additions, 0 deletionsoneflow/core/framework/tensor_impl.cpp
- oneflow/python/test/ops/test_stateful_local_kernel.py 21 additions, 28 deletionsoneflow/python/test/ops/test_stateful_local_kernel.py
- oneflow/user/kernels/stateful_local_opkernel.cpp 18 additions, 6 deletionsoneflow/user/kernels/stateful_local_opkernel.cpp
- oneflow/user/kernels/stateful_local_opkernel.h 16 additions, 7 deletionsoneflow/user/kernels/stateful_local_opkernel.h
Please register or sign in to comment