tensorlayer3/tensorlayer/optimizers/load_optimizers_backend.py

15 lines
437 B
Python

#! /usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from tensorlayer.backend.ops.load_backend import BACKEND
if BACKEND == 'tensorflow':
from .tensorflow_optimizers import *
elif BACKEND == 'mindspore':
from .mindspore_optimizers import *
elif BACKEND == 'paddle':
from .paddle_optimizers import *
else:
raise NotImplementedError("This backend is not supported")