- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for model (0.18 sec)
-
tensorflow/c/c_api.cc
#include "tensorflow/cc/framework/gradients.h" #include "tensorflow/cc/framework/ops.h" #include "tensorflow/cc/framework/scope_internal.h" #include "tensorflow/cc/ops/while_loop.h" #include "tensorflow/cc/saved_model/loader.h" #include "tensorflow/core/distributed_runtime/server_lib.h" #include "tensorflow/core/framework/logging.h" #include "tensorflow/core/framework/op_gen_lib.h"
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/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc
namespace tf_posix_filesystem { int TransferFileContents(const char* src, const char* dst, mode_t mode, off_t size) { int src_fd = open(src, O_RDONLY); if (src_fd < 0) return -1; // When creating file, use the same permissions as original mode_t open_mode = mode & (S_IRWXU | S_IRWXG | S_IRWXO); // O_WRONLY | O_CREAT | O_TRUNC:
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jan 16 05:36:52 GMT 2020 - 2.1K bytes - Viewed (1) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_helper.cc
#include <stdio.h> #include <fstream> #include <string> #include <utility> TempFile::TempFile(const std::string& temp_file_name, std::ios::openmode mode) : std::fstream(temp_file_name, mode), name_(temp_file_name) {} TempFile::TempFile(TempFile&& rhs) : std::fstream(std::move(rhs)), name_(std::move(rhs.name_)) {} TempFile::~TempFile() { std::fstream::close();
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Jun 26 14:56:58 GMT 2020 - 1.3K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/nn_grad.cc
absl::Span<AbstractTensorHandle*> outputs) { if (!isa<ImmediateExecutionContext>(ctx)) { // TODO(b/168850692): Fix this. return errors::Unimplemented( "BroadcastMul is not supported in tracing mode yet."); } auto imm_ctx = dyn_cast<ImmediateExecutionContext>(ctx); AbstractTensorPtr minus_1(imm_ctx->CreateInt32Scalar(-1)); ImmediateTensorHandlePtr dim(imm_ctx->CreateLocalHandle(minus_1.get()));
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 5.7K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/grad_test_helper.cc
namespace gradients { namespace internal { void CompareNumericalAndAutodiffGradients( Model model, Model grad_model, AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> inputs, bool use_function, double abs_error) { auto num_inputs = inputs.size(); std::vector<AbstractTensorHandle*> outputs(num_inputs); auto s = RunModel(grad_model, ctx, inputs, absl::MakeSpan(outputs), /*use_function=*/use_function);
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 5K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/math_grad_test.cc
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Thu Apr 13 17:32:14 GMT 2023 - 16.3K bytes - Viewed (0) -
tensorflow/c/eager/gradient_checker.cc
RunModel(forward, ctx, inputs, model_outputs, use_function)); AbstractTensorHandlePtr model_out(model_outputs[0]); TF_Tensor* model_out_tensor; TF_RETURN_IF_ERROR(GetValue(model_out.get(), &model_out_tensor)); int num_dims_out = TF_NumDims(model_out_tensor); TF_DeleteTensor(model_out_tensor); // If the output is a scalar, then return the scalar output if (num_dims_out == 0) { outputs[0] = model_out.release();
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 7.3K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/nn_grad_test.cc
TF_RETURN_IF_ERROR(ops::SparseSoftmaxCrossEntropyWithLogits( ctx, inputs[0], inputs[1], &loss, &backprop, "SparseSoftmaxCrossEntropyWithLogits")); // `gradient_checker` only works with model that returns only 1 tensor. // Although, `ops::SparseSoftmaxCrossEntropyWithLogits` returns 2 tensors, the // second tensor isn't needed for computing gradient so we could safely drop // it. outputs[0] = loss;
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 8.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
SetViaProto(desc_, {}); FinishAndVerify(desc_, {}); } TEST(CAPI, SavedModel) { // Load the saved model. const string saved_model_dir = tensorflow::GetDataDependencyFilepath( tensorflow::io::JoinPath("tensorflow", "cc", "saved_model", "testdata", "half_plus_two", "00000123")); TF_SessionOptions* opt = TF_NewSessionOptions();
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/experimental/grappler/grappler.cc
const TP_OptimizerConfigs tp_configs, const char* device_type) { ConfigList configs; // disable_model_pruning is turned off by default. if (tp_configs.disable_model_pruning == TF_TriState_On) configs.disable_model_pruning = true; else configs.disable_model_pruning = false; // The other configs are turned on by default. CONFIG_TOGGLE(implementation_selector);
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 15K bytes - Viewed (1)