text_plain_output_1.png
import numpy as np

import tensorflow as tf

data = np.ndarray(shape=(48, 48, 1), dtype=np.float32)

data_tensor = tf.convert_to_tensor(data, dtype=tf.float32)

data_tensor = tf.expand_dims(data_tensor, axis=0)

data_tensor2 = tf.convert_to_tensor(data, dtype=tf.float32)

data_tensor2 = tf.expand_dims(data_tensor2, axis=0)

data_tensor2.shape