# Copyright (c) 2020 VisualDL Authors. All Rights Reserve.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.# =======================================================================# coding=utf-8fromvisualdlimportLogWriterif__name__=='__main__':hot_vectors=[[1.3561076367500755,1.3116267195134017,1.6785401875616097],[1.1039614644440658,1.8891609992484688,1.32030488587171],[1.9924524852447711,1.9358920727142739,1.2124401279391606],[1.4129542689796446,1.7372166387197474,1.7317806077076527],[1.3913371800587777,1.4684674577930312,1.5214136352476377]]labels=["label_1","label_2","label_3","label_4","label_5"]withLogWriter(logdir="./log/high_dimensional_test/train")aswriter:writer.add_embeddings(tag='default',labels=labels,hot_vectors=hot_vectors)