tf.trainable_variables
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Returns all variables created with trainable=True.
tf.trainable_variables(
    scope=None
)
When passed trainable=True, the Variable() constructor automatically
adds new variables to the graph collection
GraphKeys.TRAINABLE_VARIABLES. This convenience function returns the
contents of that collection.
| Args | 
|---|
| scope | (Optional.) A string. If supplied, the resulting list is filtered to
include only items whose nameattribute matchesscopeusingre.match. Items without anameattribute are never returned if a scope
is supplied. The choice ofre.matchmeans that ascopewithout special
tokens filters by prefix. | 
| Returns | 
|---|
| A list of Variable objects. | 
  
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2020-10-01 UTC.
  
  
  
    
      [null,null,["Last updated 2020-10-01 UTC."],[],[]]