Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

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

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