提交 e93c3e40 编写于 作者: Q qiaolongfei

fix format

上级 a402cf90
...@@ -111,7 +111,8 @@ class DenseScanner(IScanner): ...@@ -111,7 +111,8 @@ class DenseScanner(IScanner):
"The dimension of input cannot be greater than 3.") "The dimension of input cannot be greater than 3.")
if len(self.__shape__) == 0: if len(self.__shape__) == 0:
raise ValueError( raise ValueError(
"The input should be a vector, please check your input data.") "The input should be a vector, please check your input data."
)
self.__dim__ = reduce(lambda x, y: x * y, self.__shape__) self.__dim__ = reduce(lambda x, y: x * y, self.__shape__)
if len(self.__shape__) == 1 and self.__dim__ != self.input_type.dim: if len(self.__shape__) == 1 and self.__dim__ != self.input_type.dim:
raise ValueError( raise ValueError(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册