- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for Inference (0.27 sec)
-
tensorflow/c/c_api.cc
} namespace { // Helper method that creates a shape handle for a shape described by dims. tensorflow::shape_inference::ShapeHandle ShapeHandleFromDims( tensorflow::shape_inference::InferenceContext* ic, int num_dims, const int64_t* dims) { if (num_dims != -1) { std::vector<tensorflow::shape_inference::DimensionHandle> dim_vec; dim_vec.reserve(num_dims); for (int i = 0; i < num_dims; ++i) {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
using tensorflow::NodeDef; using tensorflow::OpRegistrationData; using tensorflow::Tensor; using tensorflow::shape_inference::DimensionHandle; using tensorflow::shape_inference::InferenceContext; using tensorflow::shape_inference::ShapeAndType; using tensorflow::shape_inference::ShapeHandle; const int num_inputs = input_shapes->num_items; NodeDef node_def;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 29.4K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler.cc
graph_properties); } void TF_InferStatically(TF_GraphProperties* graph_properties, TF_Bool assume_valid_feeds, TF_Bool aggressive_shape_inference, TF_Bool include_input_tensor_values, TF_Bool include_output_tensor_values, TF_Status* status) { TF_SetStatus(status, TF_OK, "");
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 15K bytes - Viewed (1) -
tensorflow/c/c_api_test.cc
.Attr("v: " #type) \ .SetShapeFn(tensorflow::shape_inference::UnknownShape); \ REGISTER_OP("CApiAttributesTestOpList" #type) \ .Attr("v: list(" #type ")") \ .SetShapeFn(tensorflow::shape_inference::UnknownShape) ATTR_TEST_REGISTER_OP(string); ATTR_TEST_REGISTER_OP(int); ATTR_TEST_REGISTER_OP(float);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
namespace tensorflow { namespace tracing { namespace graph { class GraphContext; class GraphOperation; class GraphTensor; auto& kUnknownDim = shape_inference::InferenceContext::kUnknownDim; auto& kUnknownRank = shape_inference::InferenceContext::kUnknownRank; // GraphTensor wraps a `TF_Output`, i.e. a pointer to TF_Operation and the index // into the list of outputs for the operation.
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 15.4K bytes - Viewed (1) -
tensorflow/c/eager/c_api_test.cc
CHECK(tensorflow::unwrap(concatOp)->OpDef()); TFE_OpAddInput(concatOp, inputs[0], status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); EXPECT_FALSE(tensorflow::unwrap(concatOp)->OpDef()) << "Inference context is still present"; TFE_OpAddInput(concatOp, inputs[1], status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); tensorflow::AttrValueMap attr_values = ExtractAttrs(concatOp);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 20:50:20 GMT 2023 - 94.6K bytes - Viewed (1) -
tensorflow/c/c_api_experimental_test.cc
} ~ShapeInferenceTest() override { TFE_DeleteContextOptions(tfe_context_options_); TFE_DeleteContext(tfe_context_); TF_DeleteStatus(status_); } // Checks the expected result of shape inference for the given `op`. void CheckOutputShapes( TFE_Op* op, const std::vector<absl::optional<std::vector<int64_t>>>& input_shapes_vec, const std::vector<TF_Tensor*>& input_tensors,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Jan 17 22:27:52 GMT 2023 - 13.1K bytes - Viewed (1) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
s = fs->CreateDir(root_dir_); if (!s.ok()) { GTEST_SKIP() << "Cannot create working directory: " << s; } } // Converts path reference to URI reference. // // If URI scheme is empty, URI reference is `path` relative to current test // root directory. Otherwise, we need to add the `<scheme>://` in front of // this path. //
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:25:58 GMT 2022 - 71K bytes - Viewed (0) -
tensorflow/c/eager/dlpack.cc
// original framework of destruction, and this context will be deleted also. struct TfDlManagedTensorCtx { TensorReference reference; std::vector<int64_t> shape; std::vector<int64_t> strides; DLManagedTensor tensor; explicit TfDlManagedTensorCtx(const TensorReference& ref) : reference(ref) {} }; // Gets tensor from eager tensor handle. const Tensor* GetTensorFromHandle(TFE_TensorHandle* h, TF_Status* status) {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 12.8K bytes - Viewed (0) -
tensorflow/c/c_api_function.cc
const DataType& dt = node->output_type(idx); return IsRefType(dt) ? InvalidArgument("Output ", idx, " of node '", node->name(), "' has a reference type ", DataTypeString(dt)) : absl::OkStatus(); } // Converts `ninputs` and `inputs` into `inputs_tensors` and `input_nodes` and // does various checks while doing so. `input_nodes` will contain the same
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 13.6K bytes - Viewed (2)