1. 01 11月, 2021 1 次提交
    • Z
      Change maybe to optional (#6611) · 380d2414
      Zhanghuihong Guan 提交于
      * initial commit, add code for async construct tensor from numpy array
      
      * inital commit to change Maybe to Optional
      
      * delete redundant code
      
      * replace Maybe with Optional
      
      * fix compile errors
      
      * format code
      
      * changes based on review
      
      * format code, fix based on review
      
      * format code
      
      * fix multiclient type
      
      * changes based on review
      
      * changes based on review
      
      * unify calling to IsMultiClirnt
      
      * refector multi_client related code
      
      * restore InMultiClient interface
      
      * double check for unnecessary changes
      
      * remove unnecessary changes
      
      * format code
      
      * Update oneflow/api/python/symbol/job_conf_symbol.cpp
      
      * Update oneflow/api/python/symbol/op_conf_symbol.cpp
      
      * Update oneflow/api/python/symbol/op_node_signature_symbol.cpp
      
      * Update oneflow/core/common/optional.h
      
      * Update oneflow/api/python/symbol/string_symbol.cpp
      
      * Update oneflow/api/python/symbol/scope_symbol.cpp
      
      * Update oneflow/api/python/symbol/placement_symbol.cpp
      
      * Update oneflow/api/python/symbol/op_conf_symbol.cpp
      Co-authored-by: NHoujiang Chen <chenhoujiangcug@gmail.com>
      Co-authored-by: NTwice <i@twice.moe>
      380d2414
  2. 29 10月, 2021 2 次提交
  3. 27 10月, 2021 2 次提交
  4. 25 10月, 2021 1 次提交
  5. 23 10月, 2021 2 次提交
    • P
      Refine functors with sequence function (#6567) · 390ddf38
      Peihong Liu 提交于
      * refine sequence_function.h
      
      * refine nn_functor with sequence_function
      
      * refine activation_functor with sequence_function
      
      * refine generator
      
      * refine
      
      * add thne_if
      
      * refine array_functor with sequence_function
      
      * refine
      
      * refine reduce grad funcs with sequence_function
      
      * remove GET_GENERATOR
      Co-authored-by: Noneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      390ddf38
    • T
      add norm、vector_norm、matrix_norm form python to c++ and add tripletMarginLoss (#5965) · 582c3d9f
      tangnana925 提交于
      * add test file at first
      
      * add tripletMarginLoss py code
      
      * module ok
      
      * add  forward test
      
      * amend test code
      
      * delete import torch
      
      * add autotest ok
      
      * delete numpy test code
      
      * amend docstring
      
      * amend loss.py, delete None
      
      * API transfer to C++
      
      * motify module
      
      * delete cout
      
      * delete cout
      
      * Submit some modified code first
      
      * submit vector_norm functor
      
      * matrix norm
      
      * Refine max/min functor (#6359)
      
      merge to dev_tripletMarginLoss
      
      * replace reducemax and reducemin
      
      * amend code error
      
      * motify code
      
      * delete norm2
      
      * delete print
      
      * delete norm2
      
      * delete print
      
      * motify review code
      
      * add assert to c++
      
      * motify review code
      
      * add else
      
      * motify review problem
      
      * add code
      
      * add test code
      
      * motify code delete dim_check
      
      * delete norm.py code
      
      * delete print
      
      * delete print
      
      * delete pu norm
      
      * delete error code
      
      * motify docsting
      
      * auto format by CI
      
      * delete no use num_dims
      
      * delete import torch lib
      
      * delete CI bug code
      
      * motify clip_grad_norm_ resolve autotest bug
      
      * auto format by CI
      
      * motify loss docstring
      
      * motify norm docstring
      Co-authored-by: NZhenhua <1209435+hengzi@users.noreply.github.com>
      Co-authored-by: Noneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      Co-authored-by: Noneflow-ci-bot <ci-bot@oneflow.org>
      582c3d9f
  6. 22 10月, 2021 2 次提交
  7. 21 10月, 2021 2 次提交
  8. 20 10月, 2021 2 次提交
  9. 19 10月, 2021 1 次提交
  10. 18 10月, 2021 2 次提交
  11. 17 10月, 2021 1 次提交
  12. 14 10月, 2021 3 次提交
    • L
      Restruct op part2 (#6525) · ce62a945
      Luyang 提交于
      * restruct std
      
      * refine
      
      * restruct var op
      
      * update
      
      * refine
      ce62a945
    • P
      move (log_)softmax into c++ and refine their tests (#6532) · d01a14af
      Peihong Liu 提交于
      * refine (log_)softmax and their tests
      
      * clean useless code
      
      * refine & clean
      Co-authored-by: Noneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      d01a14af
    • L
      Intrusive (#6479) · d74f6914
      Li Xinqi 提交于
      * remove ObjectMsgReflection
      
      * replace OBJECT_MSG_DEFINE_OPTIONAL(scalar type, xxx) to OBJECT_MSG_FIELD(scalar type, xxx_)
      
      * replace OBJECT_MSG_DEFINE_OPTIONAL with OBJECT_MSG_FIELD
      
      * replace OBJECT_MSG_DEFINE_PTR with OBJECT_MSG_FIELD
      
      * rm useless CallbackMsg
      
      * replace OBJECT_MSG_DEFINE_STRUCT with OBJECT_MSG_FIELD
      
      * replace OBJECT_MSG_DEFINE_FLAT_MSG with OBJECT_MSG_FIELD
      
      * rename EmbeddedListLink to ListEntry
      
      * rename [a-zA-Z0-9_]*link[a-zA-Z0-9_]* to [a-zA-Z0-9_]*entry[a-zA-Z0-9_]*
      
      * replace OBJECT_MSG_DEFINE_LIST_LINK with OBJECT_MSG_FIELD
      
      * introduce namespace intrusive
      
      * refactor template signature of TrivialObjectMsgList
      
      * OBJECT_MSG_FIELD_COUNTER
      
      * add object msg utils: OBJECT_MSG_FIELD_NUMBER/OBJECT_MSG_FIELD_TYPE/OBJECT_MSG_FIELD_OFFSET
      
      * refator ObjectMsgList to intrusive::List
      
      * rename OBJECT_MSG_FIELD to OBJECT_MSG_DEFINE_FIELD
      
      * add new macro OBJECT_MSG_FIELD
      
      * replace OBJECT_MSG_DEFINE_LIST_HEAD with OBJECT_MSG_DEFINE_FIELD
      
      * rename src_instruction_entry_ to in_edge_entry_; rename dst_instruction_entry_ to out_edge_entry_
      
      * rename TrivialObjectMsgList<LinkField, kDisableSelfLoopLink> to intrusive::List
      
      * refactor TrivialObjectMsgList<ValueLinkField, kEnableSelfLoopLink> to HeadFreeList<typename ValueLinkField, int field_counter>
      
      * rename object_msg/object_msg_list.h to object_msg/list.h
      
      * replace OBJECT_MSG_DEFINE_MUTEXED_LIST_HEAD with OBJECT_MSG_DEFINE_FIELD
      
      * rename or delete test files in object_msg/
      
      * replace OBJECT_MSG_DEFINE_CONDIDTIONAL_LIST with OBJECT_MSG_DEFINE_FIELD
      
      * 1) rename EmbeddedSkipListLink to ListEntryArray; 2) rename EmbeddedSkipListKey to SkipListKey; 3) rename EmbeddedSkipListHead to SkipListHead
      
      * replace OBJECT_MSG_DEFINE_SKIPLIST_KEY with OBJECT_MSG_DEFINE_FIELD
      
      * replace OBJECT_MSG_DEFINE_MAP_KEY with OBJECT_MSG_DEFINE_FIELD
      
      * replace OBJECT_MSG_DEFINE_SKIPLIST_HEAD/OBJECT_MSG_DEFINE_MAP_HEAD to OBJECT_MSG_DEFINE_FIELD
      
      * remove OBJECT_MSG_DEFINE_INIT()
      
      * rename xxx.msg.h to xxx.h
      
      * remove OBJECT_MSG_DEFINE_DELETE
      
      * 1) rename ObjectMsgBase to ObjectMsgRef; 2) rename ObjectMsgStruct to ObjectMsgBase
      
      * extract ObjectMsgPtr into object_msg/shared_ptr.h
      
      * rename ObjectMsgPtr to instrusive::SharedPtr
      
      * rename intrusive::SharedPtr<T>::New to intrusive::MakeShared<T>
      
      * rename xxxObjectMsgxxx to xxxInstrusivexxx
      
      * rename object_msg/ to intrusive/
      
      * merge mutable_xxx() and mut_xxx() into mut_xxx()
      
      * remove OF_PUBLIC/OF_PRIVATE
      
      * change signatures of macros xxxLIST_FOR_EACHxxx
      
      * 1) merge INTRUSIVE_LIST_FOR_EACH and INTRUSIVE_SKIPLIST_FOR_EACH into INTRUSIVE_FOR_EACH; 2) merge INTRUSIVE_LIST_FOR_EACH_PTR and INTRUSIVE_SKIPLIST_FOR_EACH_PTR into INTRUSIVE_FOR_EACH_PTR; 3) merge INTRUSIVE_LIST_UNSAFE_FOR_EACH_PTR and INTRUSIVE_SKIPLIST_UNSAFE_FOR_EACH_PTR into INTRUSIVE_UNSAFE_FOR_EACH_PTR
      
      * rename xxxLinkxxx to xxxEntryxxx
      
      * fix typo
      
      * add README.md
      
      * rename intrusive::SharedPtr to intrusive::shared_ptr; rename intrusive::MakeShared to intrusive::make_shared
      
      * refactor intrusive/channel.h
      
      * add default constructor for intrusive class
      
      * address static analysis
      
      * make intrusive class constructor private
      
      * extract HeadFreeList into head_free_list.h
      
      * NOLINT
      
      * more nolint
      
      * auto format by CI
      Co-authored-by: Noneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      Co-authored-by: Noneflow-ci-bot <ci-bot@oneflow.org>
      d74f6914
  13. 13 10月, 2021 1 次提交
  14. 12 10月, 2021 2 次提交
  15. 11 10月, 2021 2 次提交
  16. 10 10月, 2021 1 次提交
  17. 09 10月, 2021 3 次提交
  18. 08 10月, 2021 2 次提交
  19. 01 10月, 2021 1 次提交
  20. 30 9月, 2021 4 次提交
  21. 29 9月, 2021 2 次提交
  22. 28 9月, 2021 1 次提交