tensorlayer3/tensorlayer/cost/__init__.py

14 lines
337 B
Python

#! /usr/bin/python
# -*- coding: utf-8 -*-
from tensorlayer.backend import BACKEND
if BACKEND == 'tensorflow':
from .tensorflow_cost import *
elif BACKEND == 'mindspore':
from .mindspore_cost import *
elif BACKEND == 'paddle':
from .paddle_cost import *
else:
raise NotImplementedError("This backend is not supported")