Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Function-Samuel committed Jan 22, 2025
1 parent f291910 commit 253a352
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/legacy_test/test_margin_cross_entropy_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import unittest

import numpy as np
Expand Down Expand Up @@ -107,7 +106,6 @@ def init_dtype(self):
self.dtype = np.float64

def setUp(self):
os.environ["PADDLE_TRAINER_ENDPOINTS"] = "127.0.0.1:36001"
self.initParams()
self.init_loss_params()
self.init_dtype()
Expand Down Expand Up @@ -229,7 +227,6 @@ def init_dtype(self):
self.np_dtype = "float32"

def setUp(self):
os.environ["PADDLE_TRAINER_ENDPOINTS"] = "127.0.0.1:36001"
self.initParams()
self.init_loss_params()
self.init_dtype()
Expand Down Expand Up @@ -336,7 +333,6 @@ def test_check_grad(self):
)
class TestMarginCrossEntropyOpV2(unittest.TestCase):
def setUp(self):
os.environ["PADDLE_TRAINER_ENDPOINTS"] = "127.0.0.1:36001"
self.initParams()
np.random.seed(self.seed)
paddle.framework.random._manual_program_seed(self.seed)
Expand Down Expand Up @@ -507,7 +503,6 @@ def init_reduction(self):
)
class TestMarginCrossEntropyOpAPIError(unittest.TestCase):
def setUp(self):
os.environ["PADDLE_TRAINER_ENDPOINTS"] = "127.0.0.1:36001"
self.initParams()
np.random.seed(self.seed)
paddle.framework.random._manual_program_seed(self.seed)
Expand Down

0 comments on commit 253a352

Please sign in to comment.