Skip to content

About detach in D_step #2

@wang975679801

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions