Skip to content

[Placeholder] Migrate more tests to the new API. #1647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions include/glow/Graph/Graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ class Function final : public Named {
unsigned_t pad);

FullyConnectedNode *createFullyConnected(llvm::StringRef name,
NodeValue input, Variable *W,
Variable *B);
NodeValue input, Storage *W,
Storage *B);

/// Create a fully connected node with the specified output type.
/// Note, outputDepth is infered based on the output type.
Expand Down Expand Up @@ -611,6 +611,20 @@ class Function final : public Named {

SaveNode *createSave(Context &ctx, llvm::StringRef name, NodeValue input);

void createSimpleRNN(Context &ctx, llvm::StringRef namePrefix,
const llvm::ArrayRef<Node *> inputs, unsigned batchSize,
unsigned hiddenSize, unsigned outputSize,
std::vector<NodeValue> &outputs);

void createGRU(Context &ctx, llvm::StringRef namePrefix,
const llvm::ArrayRef<Node *> inputs, unsigned batchSize,
unsigned hiddenSize, unsigned outputSize,
std::vector<NodeValue> &outputs);

void createLSTM(Context &ctx, llvm::StringRef namePrefix,
const llvm::ArrayRef<Node *> inputs, unsigned batchSize,
unsigned hiddenSize, unsigned outputSize,
std::vector<NodeValue> &outputs);
/// @}

/// Erase the node \p N from the Function.
Expand Down
Loading