Walking You Through WASI Support in Go

Go 1.21 adds a new port targeting the WASI preview 1 syscall API through the new GOOS value wasip1. This port builds on the existing WebAssembly port introduced in Go 1.11. What is WebAssembly? WebAssembly (Wasm) is a binary instruction format originally designed for the web. It represents a standard that allows developers to run … Read more

Your One-Stop Guide to All the Type Promotion Changes in TensorFlow 2.15

Content Overview Overview Setup Enabling the new type promotion Two modes: ALL mode vs SAFE mode Dtypes Example of precision losing operations Example of bit-widening operations A System Based on a Lattice Type Promotion Lattice Type Promotion Table Advantages of The New Type Promotion WeakTensor Overview WeakTensor construction Overview There are 4 options for type … Read more

Optimizing Machine Learning Models with Precise Gradient Management in TensorFlow

Content Overview Setup Controlling gradient recording Stop recording Reset/start recording from scratch Stop gradient flow with precision Custom gradients Custom gradients in SavedModel Multiple tapes Higher-order gradients Jacobians Scalar source Tensor source Batch Jacobian The Introduction to gradients and automatic differentiation guide includes everything required to calculate gradients in TensorFlow. This guide focuses on deeper, less common … Read more

Tips for Writing Clean Code in TensorFlow 2

Content Overview Overview Setup Recommendations for idiomatic TensorFlow 2 Refactor your code into smaller modules Adjust the default learning rate for some tf.keras.optimizers Use tf.Modules and Keras layers to manage variables Combine tf.data.Datasets and tf.function Use Keras training loops Customize training and write your own loop Take advantage of tf.function with Python control flow New-style … Read more