Skip to content

About detach in D_step #2

Description

@wang975679801

How to train the Discriminator by realData_result.detach().numpy?

fakeData_result=D(fakeData_ZP,useInfo_batch)
realData_result=D(realData,useInfo_batch)
d_loss = -np.mean(np.log(realData_result.detach().numpy()+10e-5) +
np.log(1. - fakeData_result.detach().numpy()+10e-5)) + 0*regularization(fakeData_ZP,realData_zp)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions