Skip to content

Conversation

1hb6s7t
Copy link
Contributor

@1hb6s7t 1hb6s7t commented Aug 29, 2024

No description provided.

@@ -0,0 +1,20 @@
# Copyright 2023 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto确认过了吗,是不是ok

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在都加上了

from ...test_configuration_common import ConfigTester
from ...test_modeling_common import ModelTesterMixin,floats_tensor,ids_tensor
TOLERANCE = 1e-4

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

通过的截图附一下

Parameters:
data (`mindspore.Tensor` of shape `(batch_size, sequence_length, num_input_channels)`):
input for Batch norm calculation
observed_indicator (`torch.BoolTensor` of shape `(batch_size, sequence_length, num_input_channels)`):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

torch.XXTensor改掉

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已更改

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""PyTorch PatchTSMixer model."""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pytorch -> MindSpore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已更改

config = PatchTSMixerConfig(**self.__class__.params)
enc = PatchTSMixerEncoder(config)
output = enc(self.__class__.enc_data)
self.assertEqual(output.last_hidden_state.shape, self.__class__.enc_output.shape)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RUN_SLOW测试结果也要附上

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

db2fa95bc12f82db0d6ca567463f922
老师这个是那个没有gamma的模型,之前例会的时候给您看了,您说:没过的应该是gamma的原因,让我提pr

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clamp_min接口改为clamp(min=)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0fa78cb8dec18556731d34f7a42946a
rebase最新代码后的

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0fa78cb8dec18556731d34f7a42946a
c8d1769551335e4d806873d847faa95

c77d172cbe55b78078cb5512c9cb0d4

@lvyufeng
Copy link
Collaborator

lvyufeng commented Sep 9, 2024

rebase最新代码哈

@lvyufeng
Copy link
Collaborator

6个用例挂了,自己修复掉,用mindspore2.4 daily包测试

@1hb6s7t 1hb6s7t closed this by deleting the head repository Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants