Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plt torch support, test=model #3011

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

Zeref996
Copy link
Collaborator

@Zeref996 Zeref996 commented Jan 2, 2025

No description provided.

@@ -128,7 +128,6 @@ def torch_dy_train(self):
opt = optimizer.get_opt(net=net)

for epoch in range(self.step):
print("data is: ", data)
Copy link
Contributor

Choose a reason for hiding this comment

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

11

"""
numpy array
"""
inputs = ((-1 + 2 * np.random.random([3, 0, 1, 1])).astype('float32'),)
Copy link
Contributor

Choose a reason for hiding this comment

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

3, 0, 1, 1 咱们的这个shape可以是一个变量吗?最好有多种0-Size的情况:

  1. [0]
  2. [x, 0]
  3. [0,x]
  4. [x,0,y]
    当然如果麻烦,我们可以不做。因为我们的原则就是“最少投出,拿到尽可能多的问题清单”

@Afjes
Copy link
Contributor

Afjes commented Jan 7, 2025 via email

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.

3 participants