Home
last modified time | relevance | path

Searched refs:epochs (Results 1 – 25 of 35) sorted by relevance

12

/third_party/mindspore/tests/ut/python/dataset/
Dtest_callbacks.py102 def build_test_case_1cb(epochs, steps, step_size=1, repeat=1): argument
118 itr = data.create_tuple_iterator(num_epochs=epochs)
119 for _ in range(epochs):
123 expected_events = generate_expected(epochs, steps, step_size, 1, repeat)
127 def build_test_case_2cbs(epochs, steps): argument
138 itr = data.create_tuple_iterator(num_epochs=epochs)
139 for _ in range(epochs):
143 expected_events = generate_expected(epochs, steps)
148 def build_test_case_2maps(epochs, steps): argument
159 itr = data.create_tuple_iterator(num_epochs=epochs)
[all …]
/third_party/mindspore/tests/st/model_zoo_tests/wide_and_deep/python_file_for_ci/
Ddatasets.py33 def _get_tf_dataset(data_dir, train_mode=True, epochs=1, batch_size=1000, argument
65 data_set = data_set.repeat(epochs)
69 def _get_mindrecord_dataset(directory, train_mode=True, epochs=1, batch_size=1000, argument
106 data_set = data_set.repeat(epochs)
110 def create_dataset(data_dir, train_mode=True, epochs=1, batch_size=1000, argument
116 return _get_tf_dataset(data_dir, train_mode, epochs, batch_size,
118 return _get_mindrecord_dataset(data_dir, train_mode, epochs,
Dtrain_and_test_multinpu_ci.py78 epochs = config.epochs
79 print("epochs is {}".format(epochs))
80 ds_train = create_dataset(data_path, train_mode=True, epochs=1, batch_size=batch_size,
82 ds_eval = create_dataset(data_path, train_mode=False, epochs=1, batch_size=batch_size,
99 model.train(epochs, ds_train,
Dconfig.py51 self.epochs = 1
81 self.epochs = args.epochs
/third_party/mindspore/tests/st/model_zoo_tests/wide_and_deep/
Dtrain_and_test_multinpu_ci_data_parallel.py76 epochs = config.epochs
77 print("epochs is {}".format(epochs))
78 ds_train = create_dataset(data_path, train_mode=True, epochs=1,
80 ds_eval = create_dataset(data_path, train_mode=False, epochs=1,
101 model.train(epochs, ds_train,
/third_party/mindspore/tests/st/model_zoo_tests/DeepFM/src/
Ddataset.py149 def _get_h5_dataset(directory, train_mode=True, epochs=1, batch_size=1000): argument
176 data_set = data_set.repeat(epochs)
180 def _get_mindrecord_dataset(directory, train_mode=True, epochs=1, batch_size=1000, argument
217 data_set = data_set.repeat(epochs)
221 def _get_tf_dataset(directory, train_mode=True, epochs=1, batch_size=1000, argument
265 data_set = data_set.repeat(epochs)
269 def create_dataset(directory, train_mode=True, epochs=1, batch_size=1000, argument
289 return _get_mindrecord_dataset(directory, train_mode, epochs,
293 return _get_tf_dataset(directory, train_mode, epochs, batch_size,
298 return _get_h5_dataset(directory, train_mode, epochs, batch_size)
/third_party/mindspore/mindspore/nn/probability/infer/variational/
Dsvi.py52 def run(self, train_dataset, epochs=10): argument
63 epochs = Validator.check_positive_int(epochs)
66 for _ in range(1, epochs+1):
/third_party/mindspore/mindspore/nn/probability/toolbox/
Duncertainty_evaluation.py85 def __init__(self, model, train_dataset, task_type, num_classes=None, epochs=1, argument
92 self.epochs = Validator.check_positive_int(epochs)
135 keep_checkpoint_max=self.epochs)
139 model.train(self.epochs, self.epi_train_dataset, dataset_sink_mode=False,
142 model.train(self.epochs, self.epi_train_dataset, dataset_sink_mode=False,
187 config_ck = CheckpointConfig(keep_checkpoint_max=self.epochs)
191 model.train(self.epochs, self.ale_train_dataset, dataset_sink_mode=False,
194 model.train(self.epochs, self.ale_train_dataset, dataset_sink_mode=False,
Danomaly_detection.py47 def train(self, train_dataset, epochs=5): argument
62 self.vae = vi.run(train_dataset, epochs)
/third_party/mindspore/mindspore/lite/java/java/fl_client/src/main/java/com/mindspore/flclient/model/
DTrainModel.java80 public int trainModel(String modelPath, int epochs) { in trainModel() argument
85 if (epochs <= 0) { in trainModel()
94 status = trainLoop(epochs); in trainModel()
107 private int trainLoop(int epochs) { in trainLoop() argument
114 for (int i = 0; i < epochs; i++) { in trainLoop()
/third_party/mindspore/tests/st/model_zoo_tests/DeepFM/
Dtest_deepfm.py46 epochs=1,
64 epochs=1,
/third_party/mindspore/mindspore/lite/src/train/
Dtrain_loop.cc38 int TrainLoop::Train(int epochs, Dataset *ds, std::vector<session::TrainLoopCallBack *> cbs, LoadDa… in Train() argument
40 MS_CHECK_GE(epochs, 0, RET_ERROR); in Train()
57 for (int i = 0; i < epochs; i++) { in Train()
Dtrain_loop.h57 int Train(int epochs, dataset::Dataset *dataset, std::vector<session::TrainLoopCallBack *> cbs,
/third_party/mindspore/mindspore/lite/src/cxx_api/train/
Dmodel.cc30 Status Model::Train(int epochs, std::shared_ptr<dataset::Dataset> ds, std::vector<TrainCallBack *> … in Train() argument
61 auto ret = loop->Train(epochs, ds.get(), cbs); in Train()
/third_party/mindspore/mindspore/lite/java/java/fl_client/src/main/java/com/mindspore/flclient/
DFLLiteClient.java59 private int epochs = 1; field in FLLiteClient
86 epochs = flPlan.epochs(); in setGlobalParameters()
104 LOGGER.info(Common.addTag("[startFLJob] GlobalParameters <epochs> from server: " + epochs)); in setGlobalParameters()
313 int tag = alTrainBert.trainModel(flParameter.getTrainModelPath(), epochs); in localTrain()
322 int tag = trainLenet.trainModel(flParameter.getTrainModelPath(), epochs); in localTrain()
/third_party/mindspore/mindspore/lite/include/train/
Dtrain_loop.h89 …virtual int Train(int epochs, mindspore::dataset::Dataset *dataset, std::vector<TrainLoopCallBack …
/third_party/mindspore/mindspore/lite/tools/benchmark_train/
Dnet_train.h133 …Network(const std::string &filename, const std::string &bb_filename, int train_session, int epochs,
142 int epochs);
Dnet_train.cc337 … const TrainCfg &train_cfg, int epochs) { in CreateAndRunNetworkForTrain() argument
362 if (epochs > 0) { in CreateAndRunNetworkForTrain()
364 session->SetupVirtualBatch(epochs); in CreateAndRunNetworkForTrain()
404 int epochs, bool check_accuracy) { in CreateAndRunNetwork() argument
419 session = CreateAndRunNetworkForTrain(filename, bb_filename, context, train_cfg, epochs); in CreateAndRunNetwork()
453 if ((epochs > 0) && train_session) { in CreateAndRunNetwork()
/third_party/mindspore/mindspore/lite/examples/unified_api/src/
Dnet_runner.cc84 explicit Measurement(unsigned int epochs) in Measurement() argument
85 : epochs_(epochs), time_avg_(std::chrono::duration<double, std::milli>(0)) {} in Measurement()
/third_party/mindspore/mindspore/lite/examples/train_lenet/src/
Dnet_runner.cc82 explicit Measurement(unsigned int epochs) in Measurement() argument
83 : epochs_(epochs), time_avg_(std::chrono::duration<double, std::milli>(0)) {} in Measurement()
/third_party/mindspore/tests/st/gnn/gcn/
Dtest_gcn.py64 for epoch in range(config.epochs):
/third_party/mindspore/tests/st/probability/dpn/
Dtest_gpu_svi_vae.py107 vae = vi.run(train_dataset=ds_train, epochs=5)
Dtest_gpu_svi_cvae.py118 cvae = vi.run(train_dataset=ds_train, epochs=5)
/third_party/mindspore/include/api/
Dmodel.h178 Status Train(int epochs, std::shared_ptr<dataset::Dataset> ds, std::vector<TrainCallBack *> cbs);
/third_party/mindspore/mindspore/schema/
Dfl_job.fbs75 epochs:int;

12