module Tensorflow
keep in alphabetical order
Do NOT edit this file. It is generated by `rake generate_ops`
Status
holds error information returned by TensorFlow. We can use status to get error and even display the error messages from tensorflow.
Based on code from github.com/jedld/tensor_stream
Based on code from github.com/jedld/tensor_stream
Constants
- AllocationDescription
- AllocationRecord
- AllocatorMemoryUsed
- ApiDef
- ApiDefs
- AssetFileDef
- AttrValue
- AutoParallelOptions
- BundleEntryProto
- BundleHeaderProto
- CallableOptions
- CleanupAllRequest
- CleanupAllResponse
- CleanupGraphRequest
- CleanupGraphResponse
- CloseSessionRequest
- CloseSessionResponse
- ClusterDef
- CollectionDef
- CompleteGroupRequest
- CompleteGroupResponse
- CompleteInstanceRequest
- CompleteInstanceResponse
- CondContextDef
- ConfigProto
- ControlFlowContextDef
- ConvolutionProto
- CostGraphDef
- CreateSessionRequest
- CreateSessionResponse
- CreateWorkerSessionRequest
- CreateWorkerSessionResponse
- CriticalSectionDef
- CriticalSectionExecutionDef
- DataType
- DebugOptions
- DebugTensorWatch
- DebuggedSourceFile
- DebuggedSourceFiles
- DeleteWorkerSessionRequest
- DeleteWorkerSessionResponse
- DeregisterGraphRequest
- DeregisterGraphResponse
- DeviceAttributes
- DeviceLocality
- DeviceProperties
- DeviceStepStats
- DictValue
- EAGER_MODE
- Event
- ExecutorOpts
- ExtendSessionRequest
- ExtendSessionResponse
- FunctionDef
- FunctionDefLibrary
- FunctionSpec
- GPUOptions
- GRAPH_MODE
- GetStatusRequest
- GetStatusResponse
- GetStepSequenceRequest
- GetStepSequenceResponse
- GradientDef
- GraphDebugInfo
- GraphDef
- GraphOptions
- GraphTransferConstNodeInfo
- GraphTransferGraphInputNodeInfo
- GraphTransferGraphOutputNodeInfo
- GraphTransferInfo
- GraphTransferNodeInfo
- GraphTransferNodeInput
- GraphTransferNodeInputInfo
- GraphTransferNodeOutputInfo
- HistogramProto
- InterconnectLink
- JobDef
- KernelDef
- KernelList
- LabeledStepStats
- ListDevicesRequest
- ListDevicesResponse
- ListValue
- LocalLinks
- LogMessage
- LoggingRequest
- LoggingResponse
- MakeCallableRequest
- MakeCallableResponse
- MarkRecvFinishedRequest
- MarkRecvFinishedResponse
- MemmappedFileSystemDirectory
- MemmappedFileSystemDirectoryElement
- MemoryLogRawAllocation
- MemoryLogRawDeallocation
- MemoryLogStep
- MemoryLogTensorAllocation
- MemoryLogTensorDeallocation
- MemoryLogTensorOutput
- MemoryStats
- MetaGraphDef
- NameAttrList
- NamedDevice
- NamedTensorProto
- NamedTupleValue
- NewReplaySession
- NodeDef
- NodeExecStats
- NodeOutput
- NoneValue
- OpDef
- OpDeprecation
- OpList
- OptimizerOptions
- PairValue
- PartialRunSetupRequest
- PartialRunSetupResponse
- QueueRunnerDef
- RPCOptions
- ReaderBaseState
- RecvBufRequest
- RecvBufRespExtra
- RecvBufResponse
- RecvTensorRequest
- RecvTensorResponse
- RegisterGraphRequest
- RegisterGraphResponse
- ReleaseCallableRequest
- ReleaseCallableResponse
- RemoteFusedGraphExecuteInfo
- ReplayOp
- RequestedExitCode
- ResetRequest
- ResetResponse
- ResourceHandleProto
- RewriterConfig
- RunCallableRequest
- RunCallableResponse
- RunGraphRequest
- RunGraphResponse
- RunMetadata
- RunOptions
- RunStepRequest
- RunStepResponse
- SaveSliceInfoDef
- SavedAsset
- SavedBareConcreteFunction
- SavedConcreteFunction
- SavedConstant
- SavedFunction
- SavedModel
- SavedObject
- SavedObjectGraph
- SavedResource
- SavedSlice
- SavedSliceMeta
- SavedTensorSliceMeta
- SavedTensorSlices
- SavedUserObject
- SavedVariable
- SaverDef
- ScopedAllocatorOptions
- ServerDef
- SessionLog
- SessionMetadata
- SignatureDef
- StepSequence
- StepStats
- StructuredValue
- Summary
- SummaryDescription
- SummaryMetadata
- TaggedRunMetadata
- TensorConnection
- TensorDescription
- TensorInfo
- TensorProto
- TensorShapeProto
- TensorSliceProto
- TensorSpecProto
- ThreadPoolOptionProto
- TraceOpts
- TracingRequest
- TracingResponse
- TrackableObjectGraph
- TupleValue
- TypeSpecProto
- VERSION
- ValuesDef
- VariableAggregation
- VariableDef
- VariableSynchronization
- VariantTensorDataProto
- VerifierConfig
- VersionDef
- WatchdogConfig
- WhileContextDef
- WorkerHealth
- WorkerHeartbeatRequest
- WorkerHeartbeatResponse
- WorkerShutdownMode
Attributes
ffi_lib[RW]
Public Class Methods
execution_mode()
click to toggle source
# File lib/tensorflow-ruby.rb, line 163 def self.execution_mode @mode ||= Tensorflow::EAGER_MODE end
execution_mode=(value)
click to toggle source
# File lib/tensorflow-ruby.rb, line 167 def self.execution_mode=(value) @mode = value end
float32()
click to toggle source
# File lib/tensorflow/python_compatiblity.rb, line 8 def self.float32 :float end
float64()
click to toggle source
# File lib/tensorflow/python_compatiblity.rb, line 12 def self.float64 :double end
library_version()
click to toggle source
# File lib/tensorflow-ruby.rb, line 140 def library_version FFI.TF_Version end
name_scope(base_name, &block)
click to toggle source
# File lib/tensorflow-ruby.rb, line 171 def self.name_scope(base_name, &block) ExecutionContext.current.name_scope(base_name, &block) end
op_def(op_name)
click to toggle source
# File lib/tensorflow-ruby.rb, line 159 def self.op_def(op_name) self.op_defs[op_name] end
op_defs()
click to toggle source
# File lib/tensorflow-ruby.rb, line 148 def self.op_defs buffer = FFI.TF_GetAllOpList string = buffer[:data].read_string(buffer[:length]) ops = OpList.decode(string) ops.op.each_with_object(Hash.new) do |op_def, hash| hash[op_def.name] = op_def end ensure FFI.TF_DeleteBuffer(buffer) end