You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just implemented it myself, but this FourierMatmul is giving error of dimension mismatch.
Can you please let me know what are the dimensions it expects? Please help?
My sample Inputs
import json
from fnet import FNetPretraining
from transformers import FNetTokenizer
with open('config.json', 'r') as f:
config = json.load(f)
tokenizer = FNetTokenizer.from_pretrained("google/fnet-base")
inputs = tokenizer(['Hello, my dog is so cute', 'Hello world'],
return_tensors='pt',
padding=True,
truncation=True, max_length=512)
# print(inputs)
{'input_ids': tensor([[ 4, 9665, 16680, 275, 3314, 65, 215, 6387, 5],
[ 4, 9665, 725, 5, 3, 3, 3, 3, 3]]), 'token_type_ids': tensor([[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0]])}
Hey,
Wonderful translation!
I just implemented it myself, but this FourierMatmul is giving error of dimension mismatch.
Can you please let me know what are the dimensions it expects? Please help?
My sample Inputs
Error
The text was updated successfully, but these errors were encountered: