Runs in CI.
Daily examples CI job.
[W 2020-12-15 17:26:46,193] Trial 0 failed because of the following error: TypeError("no implementation found for 'torch.tensor.eq' on types that implement __torch_function__: [<class 'fastai.torch_core.TensorImage'>, <class 'fastai.torch_core.TensorCategory'>]")
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/optuna/_optimize.py", line 191, in _run_trial
value_or_values = func(trial)
File "examples/fastaiv2_simple.py", line 78, in objective
learn.fit(EPOCHS)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 206, in fit
self._with_events(self._do_fit, 'fit', CancelFitException, self._end_cleanup)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 155, in _with_events
try: self(f'before_{event_type}') ;f()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 197, in _do_fit
self._with_events(self._do_epoch, 'epoch', CancelEpochException)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 155, in _with_events
try: self(f'before_{event_type}') ;f()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 192, in _do_epoch
self._do_epoch_validate()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 188, in _do_epoch_validate
with torch.no_grad(): self._with_events(self.all_batches, 'validate', CancelValidException)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 155, in _with_events
try: self(f'before_{event_type}') ;f()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 161, in all_batches
for o in enumerate(self.dl): self.one_batch(*o)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 179, in one_batch
self._with_events(self._do_one_batch, 'batch', CancelBatchException)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 157, in _with_events
finally: self(f'after_{event_type}') ;final()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 133, in __call__
def __call__(self, event_name): L(event_name).map(self._call_one)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastcore/foundation.py", line 154, in map
def map(self, f, *args, gen=False, **kwargs): return self._new(map_ex(self, f, *args, gen=gen, **kwargs))
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastcore/basics.py", line 641, in map_ex
return list(res)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastcore/basics.py", line 631, in __call__
return self.func(*fargs, **kwargs)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 137, in _call_one
[cb(event_name) for cb in sort_by_run(self.cbs)]
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 137, in <listcomp>
[cb(event_name) for cb in sort_by_run(self.cbs)]
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/callback/core.py", line 44, in __call__
if self.run and _run: res = getattr(self, event_name, noop)()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 458, in after_batch
for met in mets: met.accumulate(self.learn)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 380, in accumulate
self.total += learn.to_detach(self.func(learn.pred, *learn.yb))*bs
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/metrics.py", line 102, in accuracy
return (pred == targ).float().mean()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/torch/tensor.py", line 25, in wrapped
return handle_torch_function(wrapped, args, *args, **kwargs)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/torch/overrides.py", line 1069, in handle_torch_function
raise TypeError("no implementation found for '{}' on types that implement "
TypeError: no implementation found for 'torch.tensor.eq' on types that implement __torch_function__: [<class 'fastai.torch_core.TensorImage'>, <class 'fastai.torch_core.TensorCategory'>]
Traceback (most recent call last):
File "examples/fastaiv2_simple.py", line 96, in <module>
study.optimize(objective, n_trials=100, timeout=600)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/optuna/study.py", line 363, in optimize
_optimize(
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/optuna/_optimize.py", line 57, in _optimize
_optimize_sequential(
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/optuna/_optimize.py", line 158, in _optimize_sequential
trial = _run_trial(study, func, catch)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/optuna/_optimize.py", line 191, in _run_trial
value_or_values = func(trial)
File "examples/fastaiv2_simple.py", line 78, in objective
learn.fit(EPOCHS)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 206, in fit
self._with_events(self._do_fit, 'fit', CancelFitException, self._end_cleanup)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 155, in _with_events
try: self(f'before_{event_type}') ;f()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 197, in _do_fit
self._with_events(self._do_epoch, 'epoch', CancelEpochException)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 155, in _with_events
try: self(f'before_{event_type}') ;f()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 192, in _do_epoch
self._do_epoch_validate()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 188, in _do_epoch_validate
with torch.no_grad(): self._with_events(self.all_batches, 'validate', CancelValidException)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 155, in _with_events
try: self(f'before_{event_type}') ;f()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 161, in all_batches
for o in enumerate(self.dl): self.one_batch(*o)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 179, in one_batch
self._with_events(self._do_one_batch, 'batch', CancelBatchException)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 157, in _with_events
finally: self(f'after_{event_type}') ;final()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 133, in __call__
def __call__(self, event_name): L(event_name).map(self._call_one)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastcore/foundation.py", line 154, in map
def map(self, f, *args, gen=False, **kwargs): return self._new(map_ex(self, f, *args, gen=gen, **kwargs))
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastcore/basics.py", line 641, in map_ex
return list(res)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastcore/basics.py", line 631, in __call__
return self.func(*fargs, **kwargs)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 137, in _call_one
[cb(event_name) for cb in sort_by_run(self.cbs)]
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 137, in <listcomp>
[cb(event_name) for cb in sort_by_run(self.cbs)]
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/callback/core.py", line 44, in __call__
if self.run and _run: res = getattr(self, event_name, noop)()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 458, in after_batch
for met in mets: met.accumulate(self.learn)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/learner.py", line 380, in accumulate
self.total += learn.to_detach(self.func(learn.pred, *learn.yb))*bs
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/fastai/metrics.py", line 102, in accuracy
return (pred == targ).float().mean()
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/torch/tensor.py", line 25, in wrapped
return handle_torch_function(wrapped, args, *args, **kwargs)
File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/torch/overrides.py", line 1069, in handle_torch_function
raise TypeError("no implementation found for '{}' on types that implement "
TypeError: no implementation found for 'torch.tensor.eq' on types that implement __torch_function__: [<class 'fastai.torch_core.TensorImage'>, <class 'fastai.torch_core.TensorCategory'>]
Error: Process completed with exit code 1.
Need to wait for FastAI to fix this.