1. 30 10月, 2021 1 次提交
    • H
      Refactor oneflow.Size (#6645) · 4be2b0a3
      Houjiang Chen 提交于
      * Refactor oneflow.Size
      
      * refine
      
      * add pybind11 caster
      
      * Support Shape cast
      
      * refine
      
      * fix size index
      
      * include size header if need export C++ Shape to Python.
      4be2b0a3
  2. 23 10月, 2021 1 次提交
  3. 10 9月, 2021 1 次提交
  4. 27 8月, 2021 1 次提交
  5. 22 8月, 2021 1 次提交
    • H
      Dev functional multiple signatures (#5982) · 7e5eef2a
      Houjiang Chen 提交于
      * Functional support multiple signatures.
      
      * Add TypeError and refine error message.
      
      * Finish py function.
      
      * Refactor add, sub, mul and div functional apis.
      
      * Fix merge error
      
      * Support scalar add/sub/mul/div tensor.
      
      * auto format by CI
      
      * Fix optional argument
      
      * Set inplace keyword only
      
      * Fix throw and treat long as float
      
      * Fixup merge error
      
      * Check tensor type
      
      * Optimize recursive
      
      * Fix add static zero
      
      * Fix merge
      
      * Fix warning as error
      
      * Fix warning as error
      
      * Fix merge
      
      * Fix merge
      Co-authored-by: Noneflow-ci-bot <ci-bot@oneflow.org>
      7e5eef2a
  6. 04 8月, 2021 1 次提交
  7. 27 7月, 2021 1 次提交
    • H
      Dev advanced indexing (#5559) · db71898c
      Houjiang Chen 提交于
      * Support numpy advanced indexing.
      
      * Finally adjust if continuos subspace.
      
      * Finish integer array indexing and combining indexing.
      
      * Finish index array parsing.
      
      * Add tensor indexing unittest
      
      * Add check
      
      * Refine
      
      * Refine tensor getitem unittest
      
      * Support int64_t cuda atomicAdd.
      
      * Not use PyObjectPtr since PySequence_Fast_GET_ITEM returns borrowed reference.
      
      * Remove experimental in indexing unittest.
      Co-authored-by: Noneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      db71898c
  8. 13 7月, 2021 1 次提交
    • X
      Fea/nn graph/graph build ctx (#5420) · 67272d28
      Xiaoyu Xu 提交于
      * graph api
      
      * add graph dummy test
      
      * add test
      
      * add recursive module mode
      
      * graph.build test pass
      
      * add detail check on graph inner node
      
      * support config and train
      
      * add repr for debug
      
      * test buffer
      
      * test buffer add
      
      * refine test
      
      * add comment
      
      * refine test
      
      * refactor Node to Block
      
      * add named_state
      
      * refine Graph.named_state()
      
      * add state_tensortuple
      
      * graph._compile()
      
      * add mc session 0
      
      * nn.graph: state tuple to private var; add BlockType; add simple multi client session
      
      * NNGraphIf
      
      * rm old graph.cpp
      
      * nn.graph: add cpp NNGraph; export and call NNGraph
      
      * add comment
      
      * nn.Graph: rm prototype MultiClientSession
      
      * nn.Graph: rm prototype MultiClientSession test
      
      * nn.Graph: add TODO
      
      * nn.Graph: format for review
      
      * nn.Graph: format
      
      * nn.Graph: format
      
      * nn.Graph: pass flake8 check
      
      * job_build_ctx
      
      * support lazy context
      
      * format
      
      * lazy mode
      
      * format
      
      * format
      
      * lazy mode add test
      
      * debug session
      
      * init session and job_build_context
      
      * rm temp code
      
      * build default scope
      
      * add default scope
      
      * add scope proto for debug
      
      * chech scope
      
      * format
      
      * refine MultiClientSession.resource
      
      * address review
      
      * lazy init scope stack in single-client, instantly init scope stack after MultiClientSession created in multi-client
      
      * fix typo
      
      * address review
      
      * fix clear default session
      
      * merger and test
      Co-authored-by: NXinqi Li <lixinqi0703106@163.com>
      Co-authored-by: Noneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      Co-authored-by: Nleaves-zwx <kunta0932@gmail.com>
      Co-authored-by: Ncheng cheng <472491134@qq.com>
      67272d28
  9. 12 7月, 2021 1 次提交
  10. 11 6月, 2021 1 次提交
    • H
      Dev functional interface. (#4932) · adeab621
      Houjiang Chen 提交于
      * Dev functional interface.
      
      * Remove repeated function_traits
      
      * Implement add and add_scalar static functional op.
      
      * Remove unused code
      
      * Refactor
      
      * Refine
      
      * Generate and export functional apis.
      
      * Refine
      
      * Refine
      
      * Refine
      
      * Generate functional api and pybind cpp when building the project.
      
      * Refine code style and implement normalization functor.
      
      * Fix cmake
      
      * Add PyYAML requirement.
      
      * Add JUST
      
      * Fix scalar IsIntegral and IsSigned
      
      * Add scalar add grad func.
      
      * Fix norm grad func to support dynamic attrs.
      
      * Support DataType.
      
      * Recursive determine input tensors.
      
      * Update generate_functional_api.py
      
      * Fix conversion from python object to dtype.
      
      * Fix crash since function has been cast with wrong function signature, the converted function behavior is undefined.
      
      * Check and throw error.
      
      * Refine
      
      * Use Maybe instead of throwing exception directly.
      Co-authored-by: Noneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      adeab621