Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for RET (0.11 sec)

  1. tensorflow/c/c_test_util.cc

      TF_Buffer* buffer = TF_NewBuffer();
      TF_GraphToGraphDef(graph, buffer, s);
      bool ret = TF_GetCode(s) == TF_OK;
      EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      if (ret) ret = graph_def->ParseFromArray(buffer->data, buffer->length);
      TF_DeleteBuffer(buffer);
      TF_DeleteStatus(s);
      return ret;
    }
    
    bool GetNodeDef(TF_Operation* oper, tensorflow::NodeDef* node_def) {
      TF_Status* s = TF_NewStatus();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  2. tensorflow/c/eager/c_api_test.cc

      TFE_TensorHandle* identity_ret[] = {nullptr, nullptr};
      num_retvals = 2;
      TFE_Execute(cloned_identity, identity_ret, &num_retvals, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      TFE_DeleteTensorHandle(input1);
      TFE_DeleteTensorHandle(input2);
      TFE_DeleteTensorHandle(identity_ret[0]);
      TFE_DeleteTensorHandle(identity_ret[1]);
    
      TFE_DeleteOp(cloned_identity);
    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)
  3. tensorflow/c/c_api_experimental.cc

      }
      TF_Buffer* ret = TF_NewBuffer();
      TF_CHECK_OK(MessageToBuffer(options, ret));
      return ret;
    }
    
    const char* TF_GraphDebugString(TF_Graph* graph, size_t* len) {
      tensorflow::mutex_lock c(graph->mu);
      const auto& debug_str = graph->graph.ToGraphDefDebug().DebugString();
      *len = debug_str.size();
      char* ret = static_cast<char*>(malloc(*len + 1));
    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)
  4. tensorflow/c/c_api.cc

      if (api_def == nullptr) {
        return nullptr;
      }
    
      TF_Buffer* ret = TF_NewBuffer();
      status->status = MessageToBuffer(*api_def, ret);
      if (!status->status.ok()) {
        TF_DeleteBuffer(ret);
        return nullptr;
      }
      return ret;
    #endif  // defined(IS_MOBILE_PLATFORM) || defined(IS_SLIM_BUILD)
    }
    
    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)
  5. tensorflow/c/eager/c_api.cc

                                      TF_Status* status) {
      TF_AttrType ret;
      TFE_Op* op = TFE_NewOp(ctx, op_or_function_name, status);
      if (status->status.ok()) {
        ret = TFE_OpGetAttrType(op, attr_name, is_list, status);
      } else {
        ret = TF_ATTR_INT;  // Same dummy return as TFE_OpGetAttrType.
      }
      TFE_DeleteOp(op);
      return ret;
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  6. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      char* p = ops_->translate_name(filesystem_.get(), name.c_str());
      CHECK(p != nullptr) << "TranslateName(" << name << ") returned nullptr";
    
      std::string ret(p);
      // Since `p` is allocated by plugin, free it using plugin's method.
      plugin_memory_free_(p);
      return ret;
    }
    
    void ModularFileSystem::FlushCaches(TransactionToken* token) {
      if (ops_->flush_caches != nullptr) ops_->flush_caches(filesystem_.get());
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_remote_test_util.cc

                       "        value {"
                       "          type: DT_FLOAT"
                       "        }"
                       "      }"
                       "    }"
                       "    ret {"
                       "      key: 'm'"
                       "      value: 'matmul:product'"
                       "    }"),
          &def));
      return def.SerializeAsString();
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_distributed_test.cc

          "      input: 'read2:value:0'"
          "      attr {"
          "        key: 'T'"
          "        value {"
          "          type: DT_FLOAT"
          "        }"
          "      }"
          "    }"
          "    ret {"
          "      key: 'sum'"
          "      value: 'add2:z:0'"
          "    }",
          &def));
      return def.SerializeAsString();
    }
    
    void TestFunctionWithPackedInput(const bool remote) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_function_test.cc

          }
        }
        // Get edges from body nodes to outputs and from inputs to outputs
        for (const OpDef::ArgDef& arg : fdef.signature().output_arg()) {
          const auto& iter = fdef.ret().find(arg.name());
          if (iter != fdef.ret().end()) {
            const auto& v = a_edges.insert({iter->second, arg.name()});
            ASSERT_TRUE(v.second) << "Duplicate edge " << iter->second << " -> "
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top