def extract(node: Node):
     read_learning_info(node.parameters)
     return FixedAffineComponentFrontExtractor.extract(node)
Ejemplo n.º 2
0
 def create_pb_for_test_node(cls):
     pb = b'<LinearParams> ' + KaldiFrontExtractorTest.generate_matrix(
         [10, 10])
     pb += b'<BiasParams> ' + KaldiFrontExtractorTest.generate_vector(10)
     cls.test_node['parameters'] = TestKaldiUtilsLoading.bytesio_from(pb)
     FixedAffineComponentFrontExtractor.extract(cls.test_node)