Skip to content

[Question]: How to Nest a Sequential within a Sequential #1084

Closed
@dogvane

Description

@dogvane

Description

...

        ILayer l = keras.layers.Normalization();
        var input = tf.ones((3, 3), name: "input");
        var block1 = keras.Sequential(new[] { l });
        block1.Apply(input);

        var block2 = keras.Sequential(new[] { keras.Sequential(new[] { l }) });
        var output = block2.Apply(input);

        print(output);

...

block1 is ok, but block2 is error.

Alternatives

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions