- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 64 for if (0.14 sec)
-
tensorflow/c/c_api.cc
} else if (typestr == "list(float)") { metadata.type = TF_ATTR_FLOAT; } else if (typestr == "list(bool)") { metadata.type = TF_ATTR_BOOL; } else if (typestr == "list(type)") { metadata.type = TF_ATTR_TYPE; } else if (typestr == "list(shape)") { metadata.type = TF_ATTR_SHAPE; } else if (typestr == "list(tensor)") {
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Thu Oct 26 21:08:15 GMT 2023 - 102.4K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/common/case_format.cc
for (const char c : str) { // Find a word start. if (c == delimiter) { // Repeated cases of wordStart means explicit delimiter usage. if (wordStart) { result.push_back(delimiter); } wordStart = true; continue; } if (!from_snake && isupper(c)) { wordStart = true; } // add delimiter if (wordStart && toSnake && !inputStart) {
C++ - Registered: Tue Jan 09 12:39:10 GMT 2024 - Last Modified: Tue Jun 15 18:23:40 GMT 2021 - 2.9K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc
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: // Open file for write and if file does not exist, create the file. // If file exists, truncate its size to 0.
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Thu Jan 16 05:36:52 GMT 2020 - 2.1K bytes - Viewed (1) -
tensorflow/c/experimental/gradients/nn_grad.cc
// Calculate Grad std::string name = "relu_grad"; TF_RETURN_IF_ERROR(ReluGrad(ctx, upstream_grad, activations, &grad_inputs[0], name.c_str())); return absl::OkStatus(); } ~ReluGradientFunction() override { for (auto output : forward_outputs_) { if (output) { output->Unref(); } } } private:
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/eager/c_api_unified_experimental.cc
TracingContext* tracing_ctx = dyn_cast<TracingContext>(unwrap(func)); if (!tracing_ctx) { tsl::Set_TF_Status_from_Status( s, tensorflow::errors::InvalidArgument( "TF_AddFunctionParameter must be called on a TracingContext.")); return nullptr; } tensorflow::PartialTensorShape partial_shape; if (shape.num_dims != -1) { DCHECK(shape.dim_sizes != nullptr);
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 9K bytes - Viewed (0) -
tensorflow/c/eager/dlpack_test.cc
EXPECT_EQ(dltensor_out->dtype.lanes, dltensor_in->dtype.lanes); for (int i = 0; i < dltensor_in->ndim; ++i) { EXPECT_EQ(dltensor_out->shape[i], dltensor_in->shape[i]); if (dltensor_out->strides) { if (i == dltensor_in->ndim - 1) { EXPECT_EQ(dltensor_out->strides[i], 1); } else { EXPECT_EQ(dltensor_out->strides[i],
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Fri Jun 30 03:04:46 GMT 2023 - 4.4K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/common/controller.cc
for (const auto& dir : path_config_.api_dirs) { const string file_name = absl::Substitute("api_def_$0.pbtxt", op.name()); const string file_path = io::JoinPath(dir, file_name); if (env_->FileExists(file_path).ok()) { TF_CHECK_OK(api_def_map_->LoadFile(env_, file_path)) << file_path; } else { // API defs are currently used for only optional pieces. } } }
C++ - Registered: Tue Jan 02 12:39:09 GMT 2024 - Last Modified: Mon Jun 21 18:51:25 GMT 2021 - 2.9K bytes - Viewed (0) -
tensorflow/c/experimental/ops/array_ops.cc
const char* raw_device_name) { AbstractOperationPtr op_ptr(ctx->CreateOperation()); TF_RETURN_IF_ERROR(op_ptr->Reset("Shape", raw_device_name)); TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(input)); TF_RETURN_IF_ERROR(op_ptr->SetAttrType("out_type", out_type)); int num_retvals = 1; return op_ptr->Execute(absl::MakeSpan(output, 1), &num_retvals); }
C++ - Registered: Tue Jan 23 12:39:08 GMT 2024 - Last Modified: Tue May 10 19:11:36 GMT 2022 - 6.7K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
struct stat st; if (stat(dst, &st) != 0) { if (errno != ENOENT) { TF_SetStatusFromIOError(status, errno, dst); return; } } else if (S_ISDIR(st.st_mode)) { TF_SetStatus(status, TF_FAILED_PRECONDITION, "target path is a directory"); return; } // We cannot rename directories yet, so prevent this. if (stat(src, &st) != 0) { TF_SetStatusFromIOError(status, errno, src);
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Sun Mar 24 20:08:23 GMT 2024 - 15.8K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
if (!status->status.ok()) return nullptr; if (input_index >= op_def->input_arg_size() || input_index < 0) { status->status = tensorflow::errors::InvalidArgument( input_index, " out of range for ", op_name); return nullptr; } const tensorflow::OpDef_ArgDef& input_arg = op_def->input_arg()[input_index]; if (input_arg.number_attr().empty()) {
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Tue Mar 21 18:51:23 GMT 2023 - 29.4K bytes - Viewed (0)