tf.raw_ops.PyFunc
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Invokes a python function to compute func(input)->output.
tf.raw_ops.PyFunc(
    input, token, Tout, name=None
)
This operation is considered stateful. For a stateless version, see
PyFuncStateless.
| Args | 
|---|
| input | A list of Tensorobjects.
List of Tensors that will provide input to the Op. | 
| token | A string.
A token representing a registered python function in this address space. | 
| Tout | A list of tf.DTypes. Data types of the outputs from the op.
The length of the list specifies the number of outputs. | 
| name | A name for the operation (optional). | 
| Returns | 
|---|
| A list of Tensorobjects of typeTout. | 
  
  
 
  
    
    
      
       
    
    
  
  
  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. Some content is licensed under the numpy license.
  Last updated 2024-04-26 UTC.
  
  
  
    
      [null,null,["Last updated 2024-04-26 UTC."],[],[]]