NotBroadcastableException
Stay organized with collections
Save and categorize content based on your preferences.
Exception that indicates that static shapes are not able to broadcast among each other during
arithmetic operations. Static shapes do not have unknown rank or any unknown dimensions hasUnknownDimension()
. The term broadcasting describes how TensorFlow treats arrays with
different shapes during arithmetic operations.
Broadcasting is the process of making arrays to have compatible shapes for arithmetic
operations. Two shapes are compatible if for each dimension pair they are either equal or one of
them is one. When trying to broadcast a Tensor to a shape, it starts with the trailing
dimensions, and works its way forward.
Public Constructors
|
NotBroadcastableException(String message)
Creates a new NotBroadcastableException exception with the specified detail message
|
|
NotBroadcastableException(String message, Throwable cause)
Creates a new NotBroadcastableException exception with the specified detail message
|
Inherited Methods
From class
java.lang.Throwable
synchronized
final
void
|
addSuppressed(Throwable arg0)
|
synchronized
Throwable
|
fillInStackTrace()
|
synchronized
Throwable
|
getCause()
|
String
|
getLocalizedMessage()
|
String
|
getMessage()
|
StackTraceElement[]
|
getStackTrace()
|
synchronized
final
Throwable[]
|
getSuppressed()
|
synchronized
Throwable
|
initCause(Throwable arg0)
|
void
|
printStackTrace()
|
void
|
printStackTrace(PrintWriter arg0)
|
void
|
printStackTrace(PrintStream arg0)
|
void
|
setStackTrace(StackTraceElement[] arg0)
|
String
|
toString()
|
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Constructors
public
NotBroadcastableException
(String message)
Creates a new NotBroadcastableException exception with the specified detail message
Parameters
message |
the detail message.
|
public
NotBroadcastableException
(String message, Throwable cause)
Creates a new NotBroadcastableException exception with the specified detail message
Parameters
message |
the detail message. |
cause |
the cause
|
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 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[]]