mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-02 01:28:31 +00:00
[autoparallel] resnet block runtime apply (#1709)
* [autoparallel] resnet block runtime apply * seperate buffer and parameter in MemoryCost * polish code * add comments and todos * fix test issue
This commit is contained in:
@@ -169,10 +169,7 @@ class Solver:
|
||||
else:
|
||||
communication_costs.append(origin_communication_cost)
|
||||
memory_costs.append(memory_cost)
|
||||
# if isinstance(memory_cost, tuple):
|
||||
# memory_costs.append(memory_cost[0])
|
||||
# else:
|
||||
# memory_costs.append(memory_cost)
|
||||
|
||||
compute_costs = np.array(compute_costs)
|
||||
communication_costs = np.array(communication_costs)
|
||||
memory_costs = np.array(memory_costs)
|
||||
|
Reference in New Issue
Block a user