Tensorflow涓繚瀛樻ā鍨嬫椂鐢熸垚鐨勫悇绉嶆枃浠跺尯鍒拰浣滅敤

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Tensorflow涓繚瀛樻ā鍨嬫椂鐢熸垚鐨勫悇绉嶆枃浠跺尯鍒拰浣滅敤相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/%e6%8a%80%e6%9c%af' title='鎶€鏈?>鎶€鏈?/a>   璁$畻   line   raft   璁粌   white   鏄綘   cpu   value   

鍋囧鎴戜滑寰楀埌浜嗗涓嬬殑checkpoints锛?/p>

鎶€鏈浘鐗? src=

涓婇潰鐨勬枃浠朵富瑕佸彲浠ュ垎鎴愪笁绫伙細涓€绉嶆槸鍦ㄤ繚瀛樻ā鍨嬫椂鐢熸垚鐨勬枃浠讹紝涓€绉嶆槸鎴戜滑鍦ㄤ娇鐢╰ensorboard鏃剁敓鎴愮殑鏂囦欢锛岃繕鏈変竴绉嶅氨鏄?code>plugins杩欎釜鏂囦欢澶癸紝杩欎釜鏄娇鐢?code>capture tpuprofile宸ュ叿鐢熸垚鐨勶紝璇ュ伐鍏峰彲浠ヨ窡韪猅PU鐨勮绠楄繃绋嬶紝骞跺浣犵殑妯″瀷鎬ц兘杩涜鍒嗘瀽锛岃繖閲屽氨涓嶆兂璇︾粏浠嬬粛浜嗐€傛湰鏂囦富瑕佷粙缁嶅墠闈袱绉嶆枃浠剁殑浣滅敤锛?/p>

tensorboard鏂囦欢

  • events.out.tfevents.*...: 淇濆瓨鐨勫氨鏄綘鐨刟ccuracy鎴栬€卨oss鍦ㄤ笉鍚屾椂鍒荤殑鍊笺€?/p>

  • graph.pbtxt: 杩欏叾瀹炴槸涓€涓枃鏈枃浠讹紝淇濆瓨浜嗘ā鍨嬬殑缁撴瀯淇℃伅锛岄儴鍒嗕俊鎭涓嬫墍绀猴細

    node_def {
      name: "FixedLengthRecordDataset/input_pipeline_task10/buffer_size"
      op: "Const"
      device: "/job:worker/task:10/device:CPU:0"
      attr {
        key: "dtype"
        value {
          type: DT_INT64
        }
      }
      attr {
        key: "value"
        value {
          tensor {
            dtype: DT_INT64
            tensor_shape {
            }
            int64_val: 262144
          }
        }
      }
    }
    node_def {
      name: "FixedLengthRecordDataset"
      op: "FixedLengthRecordDataset"
      input: "FixedLengthRecordDataset/input_pipeline_task10/filenames:output:0"
      input: "FixedLengthRecordDataset/input_pipeline_task10/header_bytes:output:0"
      input: "FixedLengthRecordDataset/input_pipeline_task10/record_bytes:output:0"
      input: "FixedLengthRecordDataset/input_pipeline_task10/footer_bytes:output:0"
      input: "FixedLengthRecordDataset/input_pipeline_task10/buffer_size:output:0"
      device: "/job:worker/task:10/device:CPU:0"
    }
    ...

淇濆瓨妯″瀷鏃剁敓鎴愮殑鏂囦欢

  • checkpoint: 鍏跺疄灏辨槸涓€涓猼xt鏂囦欢锛屽瓨鍌ㄧ殑鏄矾寰勪俊鎭紝鎴戜滑鍙互鐪嬩竴涓嬪畠鐨勫唴瀹规槸浠€涔堬細
model_checkpoint_path: "model.ckpt-5000"
all_model_checkpoint_paths: "model.ckpt-0"
all_model_checkpoint_paths: "model.ckpt-5000"

鍙互鐪嬪埌绗竴琛岃〃绀烘渶杩戠殑涓€娆heckpoints璺緞淇℃伅锛屼篃灏辨槸璇村彲鑳藉洜涓烘煇绉嶅師鍥犱綘鐨勬ā鍨嬭缁冧腑鏂簡銆備笉杩囨病鍏崇郴锛屼笅娆¢噸鏂拌缁冩椂锛屼細鑷姩浠庝笂娆$殑鏂偣缁х画璁粌鑰屼笉鐢ㄩ噸鏂拌缁冧簡銆傚悗闈袱椤瑰垯琛ㄧず宸茬粡淇濆瓨鐨勬墍鏈夋柇鐐硅矾寰勩€?/p>

  • model.ckpt-*.meta: 鍏跺疄鍜屼笂闈㈢殑graph.pbtxt浣滅敤涓€鏍烽兘淇濆瓨浜唃raph缁撴瀯,鍙笉杩噈eta鏂囦欢鏄簩杩涘埗鐨勶紝瀹冨寘鎷?GraphDef,SaverDef绛?褰撳瓨鍦╩eta file,鎴戜滑鍙互涓嶅湪鏂囦欢涓畾涔夋ā鍨?涔熷彲浠ヨ繍琛?鑰屽鏋滄病鏈塵eta file,鎴戜滑闇€瑕佸畾涔夊ソ妯″瀷,鍐嶅姞杞絛ata file,寰楀埌鍙橀噺鍊笺€?/p>

  • model.ckpt-*.index: 杩欐槸涓€涓猻tring-string table锛宼able鐨刱ey鍊间负tensor鍚嶏紝value涓簊erialized BundleEntryProto銆傛瘡涓狟undleEntryProto琛ㄨ堪浜唗ensor鐨刴etadata锛屾瘮濡傞偅涓猟ata鏂囦欢鍖呭惈tensor銆佹枃浠朵腑鐨勫亸绉婚噺銆佷竴浜涜緟鍔╂暟鎹瓑銆?/p>

  • model.ckpt-*.data-*: 淇濆瓨浜嗘ā鍨嬬殑鎵€鏈夊彉閲忕殑鍊硷紝TensorBundle闆嗗悎銆?/p>



MARSGGBO?鍘熷垱





2019-10-14



以上是关于Tensorflow涓繚瀛樻ā鍨嬫椂鐢熸垚鐨勫悇绉嶆枃浠跺尯鍒拰浣滅敤的主要内容,如果未能解决你的问题,请参考以下文章

鑾峰彇json涓殑灞炴€у€硷紝鐢熸垚鏂癹son

鍒嗗竷寮廔D鐢熸垚绛栫暐 · fossi

Jmeter 缂栧啓鎺ュ彛娴嬭瘯鐢ㄤ緥閬囧埌鐨勯棶棰樺強瑙e喅鍔炴硶

java 鐢熸垚绛惧悕鏂囦欢

杩唬鍣?鐢熸垚鍣?瑁呴グ鍣?閫掑綊