Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

ошибочка #27

@KlarkCode

Description

@KlarkCode
def call(self, inputs):
    return inputs + self.pos_encoding[:, : tf.shape(inputs)[1], :]

в этих строках кода пишет что нужно передать числовое значение, что не так?
return inputs + self.pos_encoding[:, : tf.shape(inputs)[1], :]
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: Exception encountered when calling PositionalEncoding.call().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions