From a5af8c4433c9ee2d2b1565f1bcc68c89e2000a6b Mon Sep 17 00:00:00 2001 From: Zheng Xu Date: Tue, 20 Feb 2024 15:00:50 -0800 Subject: [PATCH] Fix the file loading code in OSS colab. PiperOrigin-RevId: 608751535 Change-Id: I4dc4d83e0d8936c33198936824a7c62aa2b73068 --- mf_dpftrl_matrices/privacy_accounting.ipynb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/mf_dpftrl_matrices/privacy_accounting.ipynb b/mf_dpftrl_matrices/privacy_accounting.ipynb index f7daf31..8f5f36f 100644 --- a/mf_dpftrl_matrices/privacy_accounting.ipynb +++ b/mf_dpftrl_matrices/privacy_accounting.ipynb @@ -106,12 +106,16 @@ }, "outputs": [], "source": [ - "b1_file = tf.keras.utils.get_file(b1_url)\n", - "c1_file = tf.keras.utils.get_file(c1_url)\n", - "lr1_file = tf.keras.utils.get_file(lr1_url)\n", - "\n", - "b2_file = tf.keras.utils.get_file(b2_url)\n", - "c2_file = tf.keras.utils.get_file(c2_url)" + "b1_file = tf.keras.utils.get_file(fname='b1', origin=b1_url)\n", + "c1_file = tf.keras.utils.get_file(fname='c1', origin=c1_url)\n", + "lr1_file = tf.keras.utils.get_file(fname='lr1', origin=lr1_url)\n", + "\n", + "b2_file = tf.keras.utils.get_file(fname='b2', origin=b2_url)\n", + "c2_file = tf.keras.utils.get_file(fname='c2', origin=c2_url)\n", + "print(\n", + " f'Local data location:\\n {b1_file}\\n {c1_file}\\n {lr1_file}\\n {b2_file}\\n'\n", + " f' {c2_file}'\n", + ")" ] }, {