From 275c701d19e036eb38f227b0ab84ecd8bfae9360 Mon Sep 17 00:00:00 2001 From: divyashreepathihalli Date: Wed, 15 Nov 2023 00:40:49 +0000 Subject: [PATCH] correct errors# --- keras_cv/layers/preprocessing/random_translation.py | 2 +- keras_cv/layers/preprocessing_3d/base_augmentation_layer_3d.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/keras_cv/layers/preprocessing/random_translation.py b/keras_cv/layers/preprocessing/random_translation.py index d929d82c98..6588c6d3bc 100644 --- a/keras_cv/layers/preprocessing/random_translation.py +++ b/keras_cv/layers/preprocessing/random_translation.py @@ -15,8 +15,8 @@ import tensorflow as tf from keras_cv import bounding_box -from keras_cv import random from keras_cv.api_export import keras_cv_export +from keras_cv.backend import random from keras_cv.layers.preprocessing.vectorized_base_image_augmentation_layer import ( # noqa: E501 VectorizedBaseImageAugmentationLayer, ) diff --git a/keras_cv/layers/preprocessing_3d/base_augmentation_layer_3d.py b/keras_cv/layers/preprocessing_3d/base_augmentation_layer_3d.py index 2e0db08abb..fbbabe6412 100644 --- a/keras_cv/layers/preprocessing_3d/base_augmentation_layer_3d.py +++ b/keras_cv/layers/preprocessing_3d/base_augmentation_layer_3d.py @@ -16,6 +16,7 @@ from keras_cv.api_export import keras_cv_export from keras_cv.backend import config +from keras_cv.backend.random import SeedGenerator if config.keras_3(): base_layer = tf.keras.layers.Layer