mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-04 10:34:41 +00:00
[doc] update rst and docstring (#1351)
* update rst * add zero docstr * fix docstr * remove fx.tracer.meta_patch * fix docstr * fix docstr * update fx rst * fix fx docstr * remove useless rst
This commit is contained in:
@@ -12,7 +12,8 @@ class ColoProxy(Proxy):
|
||||
ColoProxy is a proxy class which uses meta tensor to handle data-dependent control flow. The original torch.fx proxy
|
||||
cannot be used to infer the condition statement, with this proxy, torch.fx can still run even with if statements.
|
||||
|
||||
Usage:
|
||||
Example::
|
||||
|
||||
proxy = tracer.create_proxy(...)
|
||||
proxy.meta_data = torch.empty(4, 2, device='meta')
|
||||
print(len(proxy)) # expect output 4
|
||||
|
Reference in New Issue
Block a user