def test_spatial_deserialize_to_spatial(): serialized_block = blocks.serialize(blocks.SpatialReduction()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.SpatialReduction)
def test_timeseries_deserialize_to_timeseries(): serialized_block = blocks.serialize(blocks.TimeseriesBlock()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.TimeseriesBlock)
def test_image_deserialize_to_image(): serialized_block = blocks.serialize(blocks.ImageBlock()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.ImageBlock)
def test_text_deserialize_to_text(): serialized_block = blocks.serialize(blocks.TextBlock()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.TextBlock)
def test_structured_deserialize_to_structured(): serialized_block = blocks.serialize(blocks.StructuredDataBlock()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.StructuredDataBlock)
def test_int_seq_deserialize_to_int_seq(): serialized_block = blocks.serialize(blocks.TextToIntSequence()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.TextToIntSequence)
def test_resnet_deserialize_to_resnet(): serialized_block = blocks.serialize(blocks.ResNetBlock()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.ResNetBlock)
def test_dense_deserialize_to_dense(): serialized_block = blocks.serialize(blocks.DenseBlock()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.DenseBlock)
def test_embed_deserialize_to_embed(): serialized_block = blocks.serialize(blocks.Embedding()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.Embedding)
def test_conv_deserialize_to_conv(): serialized_block = blocks.serialize(blocks.ConvBlock()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.ConvBlock)
def test_rnn_deserialize_to_rnn(): serialized_block = blocks.serialize(blocks.RNNBlock()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.RNNBlock)
def test_xception_deserialize_to_xception(): serialized_block = blocks.serialize(blocks.XceptionBlock()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.XceptionBlock)
def test_augment_deserialize_to_augment(): serialized_block = blocks.serialize(blocks.ImageAugmentation()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.ImageAugmentation)
def test_cat_to_num_deserialize_to_cat_to_num(): serialized_block = blocks.serialize(blocks.CategoricalToNumerical()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.CategoricalToNumerical)
def test_merge_deserialize_to_merge(): serialized_block = blocks.serialize(blocks.Merge()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.Merge)
def test_bert_deserialize_to_transformer(): serialized_block = blocks.serialize(blocks.BertBlock()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.BertBlock)
def test_temporal_deserialize_to_temporal(): serialized_block = blocks.serialize(blocks.TemporalReduction()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.TemporalReduction)
def test_ngram_deserialize_to_ngram(): serialized_block = blocks.serialize(blocks.TextToNgramVector()) block = blocks.deserialize(serialized_block) assert isinstance(block, blocks.TextToNgramVector)