mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-15 22:19:38 +00:00
[fx] PoC of runtime shape consistency application (#1607)
* [fx] PoC of runtime shape consistency application * polish code
This commit is contained in:
@@ -408,7 +408,8 @@ class StrategiesConstructor:
|
||||
sharding_strategy_attribute = ShardingStrategy(name,
|
||||
output_sharding_spec,
|
||||
memory_cost=memory_cost,
|
||||
resharding_costs=resharding_costs)
|
||||
resharding_costs=resharding_costs,
|
||||
input_shardings=tuple(input_sharding_specs))
|
||||
strategies_vector.append(sharding_strategy_attribute)
|
||||
|
||||
self.remove_duplicated_strategy(strategies_vector)
|
||||
|
Reference in New Issue
Block a user