提交 f11b05ff 编写于 作者: B barrierye

update async_executor.py for support set_use_slots and set set_dense_slots

上级 1ac0989a
......@@ -45,6 +45,10 @@ class DataFeedDesc(object):
def get_slot(self, name):
return self.proto_desc.multi_slot_desc.slots[self.__name_to_index[name]]
def set_dense_slots(self, dense_slots_name):
for name in dense_slots_name:
self.proto_desc.multi_slot_desc.slots[self.__name_to_index[name]].dense = True
def set_use_slots(self, use_slots_name):
for name in use_slots_name:
self.proto_desc.multi_slot_desc.slots[self.__name_to_index[name]].use = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册