/external/tensorflow/tensorflow/lite/python/ |
lite.py | 70 graph=None): 75 input_arrays: List of arrays that are considered inputs of the graph. 76 output_arrays: List of arrays that are considered outputs of the graph. 77 graph: TensorFlow Graph. Required when Eager mode is enabled. (default None) 82 meta_graph = _export_meta_graph(graph_def=graph_def, graph=graph) 254 graph_def = _run_graph_optimizations(frozen_func.graph.as_graph_def(), 256 frozen_func.graph) 318 TFLite FlatBuffer or graph visualization [all...] |
/external/tensorflow/tensorflow/python/compiler/tensorrt/test/ |
tf_trt_integration_test_base.py | 274 g = ops.Graph() 278 graph=g, config=config, use_gpu=True, force_gpu=True) as sess: 328 logging.info("Running calibration graph, config:\n%s", str(session_config)) 345 logging.info("Creating TRT graph for inference, config\n%s", 362 logging.info("Writing graph to %s/%s", temp_dir, graph_name) 504 # Verify original graph. 507 # Run original graph without trt to get reference result. 509 logging.info("Running original graph w/o trt, config:\n%s", 528 logging.info("Running final inference graph, config:\n%s", 540 # times to the same graph will result in same graph [all...] |
/external/tensorflow/tensorflow/python/debug/wrappers/ |
local_cli_wrapper_test.py | 530 # Use an impossible device name to cause an error before graph execution. 797 wrapped_sess.observers["profiler_py_graphs"][0], ops.Graph) [all...] |
/external/tensorflow/tensorflow/python/framework/ |
func_graph.py | 126 class FuncGraph(ops.Graph): 127 """Graph representing a function body. 138 represented by this graph can be said to have been executed. 146 outer_graph: The graph this function is defined in. May be another FuncGraph 147 or the global default Graph. 150 control_captures: Set of external ops on which this graph has a control 152 seed: The graph-level random seed. 153 capture_by_value: If True, the func graph will capture Variables by value 160 The graph will inherit its graph key, collections, seed, and distributio [all...] |
ops.py | 144 """Convert `obj` to a graph element if possible, otherwise return `None`. 245 enables TensorFlow to execute an entire `Graph` that represents a 248 2. After the graph has been launched in a session, the value of the 259 # Build a dataflow graph. 264 # Construct a `Session` to execute the graph. 267 # Execute the graph and store the value that `e` represents in `result`. 332 # to easily navigate a computation graph. 347 def graph(self): member in class:Tensor 348 """The `Graph` that contains this tensor.""" 349 return self._op.graph 937 def graph(self): member in class:_EagerTensorBase 1696 def graph(self): member in class:IndexedSlices 2462 def graph(self): member in class:Operation [all...] |
test_util.py | 107 def assert_ops_in_graph(expected_ops, graph): 112 graph: Graph to check. 118 ValueError: If the expected ops are not present in the graph. 121 gd = graph.as_graph_def() 608 # Run the test in a new graph so that collections get cleared when it's 609 # done, but inherit the graph key so optimizers behave. 611 with ops.Graph().as_default(): 639 """Tests whether an object should be omitted from the dependency graph.""" 687 def build_ref_graph(obj, graph, reprs, blacklist) [all...] |
function.py | 51 The decorated function must add ops to the default graph and return zero or 64 default graph. In addition, it adds the definition of the function into the 65 default graph. Because the addition of the function into the graph 68 Any variables created inside of the function are hoisted into the outer graph. 73 Definitions of functions in a graph are frozen as soon as the graph is used to 75 may be added to the graph, with the new functions themselves becoming 86 # Building the graph. 100 declare this `Function` in the graph [all...] |
/external/tensorflow/tensorflow/python/kernel_tests/ |
barrier_ops_test.py | 36 with ops.Graph().as_default():
|
py_func_test.py | 460 # Encapsulate the graph generation, so locals can be deleted. 463 g = ops.Graph() 468 # These ops have a reference to 'c' which has a reference to the graph. 469 # Checks if the functions are being deleted though the graph is referenced from them.
|
/external/v8/src/compiler/ |
escape-analysis.cc | 66 // Encapsulates the current state of the IR graph and the reducer state like 118 VariableTracker(JSGraph* graph, EffectGraphReducer* reducer, Zone* zone); 133 // in the graph. This is a workaround that should be removed once we can 280 Graph* graph, std::function<void(Node*, Reduction*)> reduce, Zone* zone) 281 : graph_(graph), 282 state_(graph, kNumStates), 352 VariableTracker::VariableTracker(JSGraph* graph, EffectGraphReducer* reducer, 355 graph_(graph), 467 Node* phi = graph_->graph()->NewNode [all...] |
raw-machine-assembler.cc | 17 Isolate* isolate, Graph* graph, CallDescriptor* call_descriptor, 22 graph_(graph), 33 graph->SetStart(graph->NewNode(common_.Start(param_count + 1))); 36 common()->Parameter(Linkage::kJSCallClosureParamIndex), graph->start()); 40 AddNode(common()->Parameter(static_cast<int>(i)), graph->start()); 42 graph->SetEnd(graph->NewNode(common_.End(0))); 128 graph()->NewNode(common()->IfValue(case_value), switch_node) [all...] |
typed-optimization.cc | 9 #include "src/compiler/js-graph.h" 30 graph()->zone())), 32 graph()->zone())), 259 Type::Range(0, lhs_type.Max(), graph()->zone())); 287 // precise type than the JSAdd that was in the graph when the Typer was run. 293 graph()->zone()); 297 type = Type::Intersect(node_type, type, graph()->zone()); 385 graph()->NewNode(simplified()->NumberToInt32(), from_char_code_repl); 386 from_char_code_repl = graph()->NewNode( 400 graph()->NewNode(comparison_op, constant_repl, from_char_code_repl) 635 Graph* TypedOptimization::graph() const { return jsgraph()->graph(); } function in class:v8::internal::compiler::TypedOptimization [all...] |
wasm-compiler.cc | 23 #include "src/compiler/graph-visualizer.h" 24 #include "src/compiler/graph.h" 27 #include "src/compiler/js-graph.h" 73 SetEffect(graph()->NewNode( \ 79 SetEffect(graph()->NewNode( \ 94 Graph* g = mcgraph->graph(); 137 Node* start = graph()->NewNode(mcgraph()->common()->Start(params)); 138 graph()->SetStart(start); 143 return graph()->NewNode(mcgraph()->common()->Parameter(index) 3386 Graph* WasmGraphBuilder::graph() { return mcgraph()->graph(); } function in class:v8::internal::compiler::WasmGraphBuilder [all...] |
code-assembler.cc | 10 #include "src/compiler/graph.h" 76 isolate, new (zone) Graph(zone), call_descriptor, 127 Graph* graph = raw_assembler()->graph(); local 128 Zone* zone = graph->zone(); 131 graph->AddDecorator(decorator); 183 rasm->isolate(), rasm->call_descriptor(), rasm->graph(), schedule, 195 rasm->isolate(), rasm->call_descriptor(), rasm->graph(), schedule, [all...] |
int64-lowering.cc | 9 #include "src/compiler/graph.h" 24 Int64Lowering::Int64Lowering(Graph* graph, MachineOperatorBuilder* machine, 28 graph_(graph), 31 state_(graph, 3), 35 placeholder_(graph->NewNode(common->Parameter(-2, "placeholder"), 36 graph->start())) { 37 DCHECK_NOT_NULL(graph); 38 DCHECK_NOT_NULL(graph->end()); 39 replacements_ = zone->NewArray<Replacement>(graph->NodeCount()) [all...] |
js-generic-lowering.cc | 12 #include "src/compiler/js-graph.h" 780 Node* limit = effect = graph()->NewNode( 839 Graph* JSGenericLowering::graph() const { return jsgraph()->graph(); } function in class:v8::internal::compiler::JSGenericLowering [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/ |
fset2.c | [all...] |
/external/tensorflow/tensorflow/python/keras/ |
backend_test.py | [all...] |
/external/tensorflow/tensorflow/python/ops/ |
nn_test.py | 578 with ops.Graph().as_default() as g: 587 with self.session(graph=g) as sess: [all...] |
resource_variable_ops.py | 55 graph_op.graph._c_graph, graph_op._as_tf_output()) # pylint: disable=protected-access 83 # Not an EagerTensor, so a graph tensor. 188 # When in eager mode, explicitly ensure so here. When in graph mode, it's 195 with context.graph_mode(), ops.Graph().as_default() as graph: 209 # Clean up op->graph->op reference cycles. 210 ops.dismantle_graph(graph) 222 with handle.graph.as_default(): 249 # running in graph mode (especially during unit tests). To clean up 307 graph. Additionally, all the operators overloaded for the `Tensor` class ar 737 def graph(self): member in class:ResourceVariable [all...] |
/external/mesa3d/src/gallium/drivers/nouveau/codegen/ |
nv50_ir_peephole.cpp | [all...] |
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/ |
mixture_test.py | [all...] |
/external/tensorflow/tensorflow/contrib/legacy_seq2seq/python/kernel_tests/ |
seq2seq_test.py | [all...] |
/external/tensorflow/tensorflow/core/kernels/data/ |
iterator_ops.cc | 29 #include "tensorflow/core/graph/graph_constructor.h" 137 Graph graph(OpRegistry::Global()); 138 TF_RETURN_IF_ERROR(ImportGraphDef({}, graph_def, &graph, nullptr)); 142 // Build a new FLR that knows about the functions in the graph, and use 145 // because some of the OpKernels in the graph might call functions that are 153 // graph has an optimized function that retains its original name). We 155 // safe to assume that any node in the serialized graph is referring to the 163 graph_runner.Run(&graph, new_state->lib, {}, {output_node}, &outputs)); 221 // the function names in (e.g.) a restored graph and the currentl [all...] |
/external/tensorflow/tensorflow/python/client/ |
session.py | 47 def graph(self): member in class:SessionInterface 48 """The underlying TensorFlow graph, to be used in building Operations.""" 49 raise NotImplementedError('graph') 246 The default graph must be the one from which we want to fetch values when 287 any other object that the graph knows how to convert to a tensor, such as a 446 Given a graph, a user-provided structure for fetches, and a feed dict, this 458 def __init__(self, graph, fetches, feeds, feed_handles=None): 462 graph: Graph of the fetches. Used to check for fetchability 470 with graph.as_default() 748 def graph(self): member in class:BaseSession [all...] |