Skip to content

Commit

Permalink
tf_function_not_found
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Nov 15, 2024
1 parent 59952fa commit d12344b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/api_cc/src/DeepPotJAX.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ inline TF_DataType get_data_tensor_type(const std::vector<int64_t>& data) {
return TF_INT64;
}

struct tf_function_not_found : public deepmd::deepmd_exception {};
struct tf_function_not_found : public deepmd::deepmd_exception {
public:
tf_function_not_found() : deepmd_exception() {};
tf_function_not_found(const std::string& msg) : deepmd_exception(msg) {};
};

inline TFE_Op* get_func_op(TFE_Context* ctx,
const std::string func_name,
Expand Down

0 comments on commit d12344b

Please sign in to comment.